aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure46
1 files changed, 23 insertions, 23 deletions
diff --git a/configure b/configure
index 1cf35d3..0b1c07b 100755
--- a/configure
+++ b/configure
@@ -5,19 +5,19 @@
# Described in following format:
# name:initial value:type:if exported to makefile:if exported to C header
# Where type can be just a string (in C in "") or plain. None implies plain.
-CNFS="SGP_VERSION:0.1:string:F:T
-SGP_CONTACT:cynerd@email.cz:string:F:T
+CNFS="GEML_VERSION:0.1:string:F:T
+GEML_CONTACT:cynerd@email.cz:string:F:T
PREFIX:/usr/local:string:T:F
-MOD_LUA:true::T:F
-MOD_PYTHON:true::T:F
-DEBUG:false::T:F
+MOD_LUA:yes::T:F
+MOD_PYTHON:yes::T:F
+DEBUG:no::T:F
CFLAGS:::T:F
LFLAGS:::T:F"
############################################################################
print_help() {
echo "Usage: ./configure [OPTION]..."
- echo "SGP configuration script. Execute this script to configure project"
+ echo "GEML configuration script. Execute this script to configure project"
echo "and prepare it for building."
echo
echo " --help, -h Give this help list"
@@ -35,8 +35,8 @@ print_help() {
echo "Environment variables:"
echo " CROSS_COMPILE Prefix for compilation tools."
echo
- echo "SGP version $SGP_VERSION"
- echo "Report bugs to <$SGP_CONTACT>."
+ echo "GEML version $GEML_VERSION"
+ echo "Report bugs to <$GEML_CONTACT>."
}
CONFIG_FILE=.config
@@ -60,7 +60,7 @@ OP=c
# Parse arguments
while [ "$#" -gt 0 ]; do
case $1 in
- -h|-?|--help)
+ -h|--help)
print_help
exit 0
;;
@@ -68,22 +68,22 @@ while [ "$#" -gt 0 ]; do
# TODO
;;
-d|--debug)
- DEBUG=True
+ DEBUG=yes
;;
-r|--release)
- DEBUG=False
+ DEBUG=no
;;
--mod-lua-enable)
- MOD_LUA=true
+ MOD_LUA=yes
;;
--mod-lua-disable)
- MOD_LUA=false
+ MOD_LUA=no
;;
--mod-python-enable)
- MOD_PYTHON=true
+ MOD_PYTHON=yes
;;
--mod-python-disable)
- MOD_PYTHON=false
+ MOD_PYTHON=no
;;
--op-makefile)
OP=m
@@ -101,7 +101,7 @@ done
# Basically save configuration to file
configure() {
- echo "# SGP configuration file" > "$CONFIG_FILE"
+ echo "# GEML configuration file" > "$CONFIG_FILE"
echo "# Please do not edit this file directly." >> "$CONFIG_FILE"
echo "$CNFS" | while read L; do
NAME=`echo "$L" | grep -o -E '^[^:]*'`
@@ -116,14 +116,14 @@ doext() {
if [ -f "Makefile" ] || [ -f configure ]; then
return
fi
- SGPDIR=`dirname "$0"`
+ GEMLDIR=`dirname "$0"`
- echo "# This is external Makefile for SGP." > Makefile
+ echo "# This is external Makefile for GEML." > Makefile
echo "export CROSS_COMPILE=$CROSS_COMPILE" >> Makefile
echo >> Makefile
- echo "SGP_PATH = $SGPDIR" >> Makefile
+ echo "GEML_PATH = $GEMLDIR" >> Makefile
echo >> Makefile
- echo "MAKEARGS := -C \"\$(SGP_PATH)\"" >> Makefile
+ echo "MAKEARGS := -C \"\$(GEML_PATH)\"" >> Makefile
echo "MAKEARGS += O=\"\$(shell pwd)\"" >> Makefile
echo >> Makefile
echo "MAKEFLAGS += --no-print-directory" >> Makefile
@@ -135,9 +135,9 @@ doext() {
echo Created local Makefile
- echo "# This is external configure script for SGP." > configure
- echo "SGP_PATH=$SGPDIR" >> configure
- echo "\$SGP_PATH/configure \$@" >> configure
+ echo "# This is external configure script for GEML." > configure
+ echo "GEML_PATH=$GEMLDIR" >> configure
+ echo "\$GEML_PATH/configure \$@" >> configure
chmod +x configure
echo Created local configure script