diff options
author | B. Stack <bgstack15@gmail.com> | 2022-10-09 17:57:05 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-10-09 17:57:05 -0400 |
commit | a7738f4dc72c9445623cd6f5348d7a80d4e52690 (patch) | |
tree | b336daf9b226783c39e6e985410cecf46484de3d /configure | |
download | fbxkb-a7738f4dc72c9445623cd6f5348d7a80d4e52690.tar.gz fbxkb-a7738f4dc72c9445623cd6f5348d7a80d4e52690.tar.bz2 fbxkb-a7738f4dc72c9445623cd6f5348d7a80d4e52690.zip |
initial commit, straight from apt-get source
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 0000000..138997e --- /dev/null +++ b/configure @@ -0,0 +1,51 @@ +#!/bin/sh + +#echo "fbxkb configuration script" + +help () { + echo "supported options are:" + echo "--help - print this help and exit" + echo "--prefix=<path> specify install path. " + echo " <path>/bin - will hold all binaries" + echo " <path>/share/fbxkb - config files, pixmaps etc" + echo " default <path> is /usr" + echo "--devel - enable devel mode: no optimization + debug symbols" + echo "--transparency - enable EXPERIMENTAL transparency support" +} + +PREFIX="/usr" +while [ $# -gt 0 ]; do + case $1 in + --help) + help + exit 0 + ;; + --prefix=*) + PREFIX=`echo $1 | sed 's/--prefix=//'` + ;; + --devel) + DEVEL=true + ;; + --transparency) + TRANSPARENCY=true + ;; + *) + echo "unknwon option $1" + help + exit 1 + ;; + esac + shift +done +echo "Installation prefix is $PREFIX" +echo "updating config.h" +echo "//created by ./configure script" > config.h +echo "#define PREFIX \"$PREFIX\"" >> config.h +if [ "x$TRANSPARENCY" != "x" ]; then + echo "#define TRANSPARENCY" +fi + +echo "updating Makefile" +echo "PREFIX:=$PREFIX" > Makefile.config +echo "DEVEL:=$DEVEL" >> Makefile.config + |