summaryrefslogtreecommitdiff
path: root/utils/packheaders.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/packheaders.sh')
-rwxr-xr-xutils/packheaders.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/utils/packheaders.sh b/utils/packheaders.sh
deleted file mode 100755
index d10b81b..0000000
--- a/utils/packheaders.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-# Utility to build kernel headers tar/zip file
-# must be run from the top level of a kernel source directory
-# and supplied an output file name
-
-MKTEMP=0; if [[ -z ${TDIR+x} ]] || [[ ! -d "${TDIR}" ]]; then
- TDIR=`mktemp -d`; MKTEMP=1; fi
-rm -rf $TDIR/*
-TDIR_ABS=$( cd "$TDIR" ; pwd -P )
-
-
-if [ $# -ne 1 ]; then
- echo "usage: makeheaders.sh <output file name>"
- exit 0
-fi
-
-mkdir -p $TDIR_ABS/kernel-headers
-
-find arch -name include -type d -print | xargs -n1 -i: find : -type f -exec cp --parents {} $TDIR_ABS/kernel-headers/ \;
-find include -exec cp --parents {} $TDIR_ABS/kernel-headers/ 2> /dev/null \;
-tar -zcf $1 --directory=$TDIR_ABS kernel-headers
-
-zip -r $1.zip $1
-rm -rf $TDIR/*; if [ $MKTEMP -eq 1 ]; then rm -rf $TDIR; fi