Re: [PATCH] Script to generate perf-man tarball.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My only concern is that this is very timing limited, I think it might
be more useful to give it a kernel version.  If Linus has started the
merge window before we get around to actually updating/generating the
perf-man tarball, it is possible that we could have a non matching one
here.

Justin

On Mon, May 30, 2016 at 5:01 AM, Miguel Flores Silverio
<floresmigu3l@xxxxxxxxx> wrote:
> This is a small script that semi automates the creation
> of the perf-man pages. This version of the script assumes
> LINUX_GIT is set in you local .bashrc file.
>
> Signed-off-by: Miguel Flores Silverio <floresmigu3l@xxxxxxxxx>
> ---
>  scripts/generate-perf-man.sh | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>  create mode 100644 scripts/generate-perf-man.sh
>
> diff --git a/scripts/generate-perf-man.sh b/scripts/generate-perf-man.sh
> new file mode 100644
> index 0000000..ef11b53
> --- /dev/null
> +++ b/scripts/generate-perf-man.sh
> @@ -0,0 +1,19 @@
> +#! /bin/sh
> +source ~/.bashrc # LINUX_GIT is set
> +
> +if [ ! -d "$LINUX_GIT" ];
> +then
> +    echo "Error: \$LINUX_GIT is not set to the upstream git tree."
> +    exit 1
> +fi
> +
> +BASEDIR=$(dirname "$(cd $(dirname $BASH_SOURCE[0]) && pwd)")
> +pushd "$LINUX_GIT"
> +KERNEL_VERSION=$( awk '/^VERSION =/ {print $3}' Makefile )
> +KERNEL_PATCHLEVEL=$( awk '/^PATCHLEVEL =/ {print $3}' Makefile )
> +
> +cd tools/perf/Documentation/
> +make
> +tar -czvf $BASEDIR/perf-man-${KERNEL_VERSION}.${KERNEL_PATCHLEVEL}.tar.gz *.1
> +make clean
> +popd
> --
> 2.7.4
> _______________________________________________
> kernel mailing list
> kernel@xxxxxxxxxxxxxxxxxxxxxxx
> https://lists.fedoraproject.org/admin/lists/kernel@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
kernel mailing list
kernel@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/kernel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux