[PATCH] pcmcia-cs-3.1.31 Configure script

Luca Montecchiani <[email protected]> Wed, 20 Feb 2002 09:54:55 +0100
Newsgroups gmane.linux.pcmcia.devel
Message-ID <[email protected]>
Hi!

I've make a small patch against the pcmcia-cs-3.1.31.tar.gz 
Configure script.
I've added a --extraver=ver parameter that allow to override
the EXTRAVERSION found (or not found) in the linux/Makefile.

I've found it extreme useful because in many linux-kernel
build script the EXTRAVERSION was passed to makefile directly
without writing it on Makefile
eg: make EXTRAVERSION="${EXT_VER}" MAKE="make $MAKE_OPT" bzImage

thanks in advance,
luca

PS: Please reply directly, as I'm not a member of this list

--- Configure   Wed Jan  2 02:10:12 2002
+++ Configure.new       Tue Feb 19 18:09:56 2002
@@ -79,7 +79,7 @@
     echo "    [--kcc=path] [--ld=path] [--uflags=flags] [--kflags=flags]"
     echo "    [--debug=flags] [--{no}trust] [--{no}cardbus] [--{no}pnp]"
     echo "    [--{no}apm] [--force] [--current] [--srctree] [--sysv]"
-    echo "    [--bsd] [--rcdir=dir]"
+    echo "    [--bsd] [--rcdir=dir] [--extraver=ver]"
     echo ""
     echo "  -n, --noprompt     non-interactive mode: no prompting"
     echo "  --kernel=DIR       use kernel source tree at DIR"
@@ -102,6 +102,7 @@
     echo "  --sysv             target has SysV init script layout"
     echo "  --bsd              target uses BSD init scripts"
     echo "  --rcdir=DIR        SysV init scripts are under DIR"
+    echo "  --extraver=ver     EXTRAVERSION tag not in linux/Makefile"
     exit 1
 }

@@ -133,6 +134,7 @@
     --sysv)            SYSV_INIT=y             ;;
     --bsd)             SYSV_INIT=n             ;;
     --rcdir=*)         arg RC_DIR "$1"         ;;
+    --extraver=*)      arg EXTRAVER "$1"       ;;
     *)                 usage                   ;;
     esac
     shift
@@ -253,6 +255,9 @@
 for TAG in VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION ; do
     eval `sed -ne "/^$TAG/s/[  ]//gp" $LINUX/Makefile`
 done
+if [ "$EXTRAVER" != "" ] ; then
+       EXTRAVERSION=$EXTRAVER
+fi
 SRC_RELEASE=$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION
 SRC_BASE=$VERSION.$PATCHLEVEL.$SUBLEVEL
 VERSION_CODE=`version $VERSION $PATCHLEVEL $SUBLEVEL`

_______________________________________________
Pcmcia-cs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pcmcia-cs-devel