From 4b08981a7e0d44c5bf5212b12133cb3619b8efc8 Mon Sep 17 00:00:00 2001 From: Chrisian Richter Date: Tue, 6 Mar 2007 20:51:51 +0000 Subject: [PATCH] added installing of mISDNif.h in the /usr/include/linux/ directory to allow userspace apps to compile for mISDN. can be specified by the -p parameter (inspired by jolly) --- std2kern | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/std2kern b/std2kern index a0f572a..81c7103 100755 --- a/std2kern +++ b/std2kern @@ -128,6 +128,7 @@ usage() { -r reverse directions of diff -c FILE Use FILE as control file for $PREPARSER (only with -u) -t Test, don't really copy files + -p PREFIX use PREFIX to install mISDNif.h in the system in the path $PREFIX/usr/include/linux Without any files given, within the whole tree, the "right" files are copied. When any files are given in the commandline, @@ -190,7 +191,7 @@ calc_version_file() { return 1 } -while getopts :dhk:uc:vtidr a ; do +while getopts :p:dhk:uc:vtidr a ; do case $a in \?) case $OPTARG in k) echo "-k requires Kernel directory parameter" @@ -218,6 +219,8 @@ while getopts :dhk:uc:vtidr a ; do ;; r) DIFFREV=true; ;; + p) PREFIX=$OPTARG; + ;; h) usage ;; esac @@ -228,6 +231,7 @@ echo echo "BE AWARE!!" echo echo "You are just attempting to overwrite your Kernel mISDN Sources" +echo "and to install mISDNif.h in your /usr/include/linux directory" echo "you probably prefer to use make install." echo echo "KERNELDIR=$KERNELDIR" @@ -241,6 +245,11 @@ if [ ! $i == "yes" ] ; then exit 1 fi +#copy mISDNif.h to allow userspace apps to compile againt mISDN +echo "Installing mISDNif.h in $PREFIX/usr/include/linux/mISDNif.h" +mkdir -p $PREFIX/usr/include/linux/ +cp include/linux/mISDNif.h $PREFIX/usr/include/linux/ + if [ -z "$VERSION" -o -z "$PATCHLEVEL" ] ; then if ! [ -f $KERNELDIR/Makefile ] ; then echo "VERSION/PATCHLEVEL not set and no Makefile to read from"