summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Cline <jeremy@jcline.org>2018-04-04 11:44:41 -0400
committerJeremy Cline <jeremy@jcline.org>2018-04-04 11:44:41 -0400
commit9126994f398bc2997dffc9e4f843529da33cf018 (patch)
treea8eaf6553311f31a57bc2bd7997362fec7a76eb2 /scripts
parent71c4e801d3d1ddaa02729b289c43fb7d92568113 (diff)
downloadkernel-9126994f398bc2997dffc9e4f843529da33cf018.tar.gz
kernel-9126994f398bc2997dffc9e4f843529da33cf018.tar.xz
kernel-9126994f398bc2997dffc9e4f843529da33cf018.zip
Remote the generate-perf-man.sh script
The kernel-tools package now builds these man pages in its specfile. Signed-off-by: Jeremy Cline <jeremy@jcline.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-perf-man.sh58
1 files changed, 0 insertions, 58 deletions
diff --git a/scripts/generate-perf-man.sh b/scripts/generate-perf-man.sh
deleted file mode 100755
index f5332ad86..000000000
--- a/scripts/generate-perf-man.sh
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-# Small script to generate the perf-man tarball. The script relies on having
-# LINUX_GIT set in your local .bashrc. By default the script will use the
-# the kernel version of the upstream tree set in LINUX_GIT. Use --version=x.y
-# to set a specific version.
-
-# [Default] eg. ./scritps/generate-perf-man
-# eg. ./scripts/generate-perf-man --version=4.8
-function usage(){
- echo
- echo "Helps generate the perf-man tarball "
- echo "-h, --help "
- echo
- echo "./generate-perf-man.sh #Generates using upstream kernel version"
- echo
- echo "./generate-perf-man.sh --version=x.y #Generate using x.y version"
-}
-
-if [ -f ~/.bashrc ]; then
- source ~/.bashrc
-fi
-
-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" > /dev/null
-KERNEL_VERSION=$( awk '/^VERSION =/ {print $3}' Makefile )
-KERNEL_PATCHLEVEL=$( awk '/^PATCHLEVEL =/ {print $3}' Makefile )
-
-if [ ! -z "$@" ]; then
- for opt in "$@"; do
- case $opt in
- --version=*.*)
- version="${opt#*=}"
- KERNEL_VERSION=$( awk -F. '{print $1}' <<< $version )
- KERNEL_PATCHLEVEL=$( awk -F. '{print $2}' <<< $version )
- ;;
- -h | --help)
- usage
- exit 0
- ;;
- *)
- ;;
- esac
- done
-fi
-cd tools/kvm/kvm_stat/
-make man
-mv kvm_stat.1 ../../perf/Documentation
-cd ../../perf/Documentation/
-make
-tar -czvf $BASEDIR/perf-man-${KERNEL_VERSION}.${KERNEL_PATCHLEVEL}.tar.gz *.1
-make clean
-rm kvm_stat.1
-popd