]> git.stg.codes - stg.git/commitdiff
Patch from SpiderX <spiderx@spiderx.dp.ua> - build in debug mode.
authorMaxim Mamontov <faust.madf@gmail.com>
Tue, 15 Jan 2013 20:13:15 +0000 (22:13 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Tue, 15 Jan 2013 20:13:15 +0000 (22:13 +0200)
projects/rlm_stg/build
projects/rscriptd/build
projects/sgauth/build
projects/sgconf/build
projects/sgconf_xml/build
projects/sgconv/build
projects/stargazer/build

index 3781d1b4f128d55801138970ee4457547bbf0efe..e427b32ef384fe88b6bf17cd9cd04141b64e3696 100755 (executable)
@@ -16,21 +16,15 @@ DATA_MODE=0644
 DIR_MODE=0755
 OWNER=root
 
 DIR_MODE=0755
 OWNER=root
 
-if [ -z $1 ]
-then
-    MAKEOPTS="-j1"
-    DEBUG="no"
+if [ "$1" = "debug" ]
+thenÑ
+   DEFS="$DEFS -DDEBUG"
+   MAKEOPTS="$MAKEOPTS -j1"
+   CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra"
+   DEBUG="yes"
 else
 else
-    if [ "$1" = "debug" ]
-    then
-        DEFS="-DDEBUG"
-        MAKEOPTS="-j1"
-        CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall"
-        DEBUG="yes"
-    else
-        MAKEOPTS="-j1"
-        DEBUG="no"
-    fi
+   DEFS="$DEFS -DNDEBUG"
+   DEBUG="no"
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
index 6a7c77f144ebbeedd938e11ab02d8cd81fea6389..ea3914c7d5d50b3134acc9b4dcbe67e37aae6c98 100755 (executable)
@@ -16,21 +16,15 @@ DATA_MODE=0644
 DIR_MODE=0755
 OWNER=root
 
 DIR_MODE=0755
 OWNER=root
 
-if [ -z $1 ]
+if [ "$1" = "debug" ]
 then
 then
-    MAKEOPTS="-j1"
-    DEBUG="no"
+   DEFS="$DEFS -DDEBUG"
+   MAKEOPTS="$MAKEOPTS -j1"
+   CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra"
+   DEBUG="yes"
 else
 else
-    if [ "$1" = "debug" ]
-    then
-        DEFS="-DDEBUG"
-        MAKEOPTS="-j1"
-        CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall"
-        DEBUG="yes"
-    else
-        MAKEOPTS="-j1"
-        DEBUG="no"
-    fi
+   DEFS="$DEFS -DNDEBUG"
+   DEBUG="no"
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
index e3ad87f429505df7ae431c753838d14673c11542..8b79bc52307a9fb44d1e106d0e88e46021aa4791 100755 (executable)
@@ -16,21 +16,15 @@ DATA_MODE=0644
 DIR_MODE=0755
 OWNER=root
 
 DIR_MODE=0755
 OWNER=root
 
-if [ -z $1 ]
+if [ "$1" = "debug" ]
 then
 then
-    MAKEOPTS="-j1"
-    DEBUG="no"
+   DEFS="$DEFS -DDEBUG"
+   MAKEOPTS="$MAKEOPTS -j1"
+   CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra"
+   DEBUG="yes"
 else
 else
-    if [ "$1" = "debug" ]
-    then
-        DEFS="-DDEBUG"
-        MAKEOPTS="-j1"
-        CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall"
-        DEBUG="yes"
-    else
-        MAKEOPTS="-j1"
-        DEBUG="no"
-    fi
+   DEFS="$DEFS -DNDEBUG"
+   DEBUG="no"
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
index da81773a11913cbb9a0ae0b06415142541c12e45..a8a675bebf5cdb1d7418f9e21b05ddf56a4e4ca5 100755 (executable)
@@ -16,21 +16,15 @@ DATA_MODE=0644
 DIR_MODE=0755
 OWNER=root
 
 DIR_MODE=0755
 OWNER=root
 
-if [ -z $1 ]
+if [ "$1" = "debug" ]
 then
 then
-    MAKEOPTS="-j1"
-    DEBUG="no"
+   DEFS="$DEFS -DDEBUG"
+   MAKEOPTS="$MAKEOPTS -j1"
+   CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra"
+   DEBUG="yes"
 else
 else
-    if [ "$1" = "debug" ]
-    then
-        DEFS="-DDEBUG"
-        MAKEOPTS="-j1"
-        CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall"
-        DEBUG="yes"
-    else
-        MAKEOPTS="-j1"
-        DEBUG="no"
-    fi
+   DEFS="$DEFS -DNDEBUG"
+   DEBUG="no"
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
index 979707586ee7610f8a575adbaa5a264ca34a839f..6816a4362647ab793ade6b7162adb016b28737fd 100755 (executable)
@@ -16,21 +16,15 @@ DATA_MODE=0644
 DIR_MODE=0755
 OWNER=root
 
 DIR_MODE=0755
 OWNER=root
 
-if [ -z $1 ]
+if [ "$1" = "debug" ]
 then
 then
-    MAKEOPTS="-j1"
-    DEBUG="no"
+   DEFS="$DEFS -DDEBUG"
+   MAKEOPTS="$MAKEOPTS -j1"
+   CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra"
+   DEBUG="yes"
 else
 else
-    if [ "$1" = "debug" ]
-    then
-        DEFS="-DDEBUG"
-        MAKEOPTS="-j1"
-        CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall"
-        DEBUG="yes"
-    else
-        MAKEOPTS="-j1"
-        DEBUG="no"
-    fi
+   DEFS="$DEFS -DNDEBUG"
+   DEBUG="no"
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
index 601c01617e09463e17a952dc6567faa38738d5f7..5084bd0dfb6f393efe5a81957dd0410c996f05c6 100755 (executable)
@@ -16,11 +16,20 @@ DATA_MODE=0644
 DIR_MODE=0755
 OWNER=root
 VAR_DIR="./inst/var/stargazer"
 DIR_MODE=0755
 OWNER=root
 VAR_DIR="./inst/var/stargazer"
-DEFS="-DDEBUG"
-MAKEOPTS="-j1"
+
+if [ "$1" = "debug" ]
+then
+   DEFS="$DEFS -DDEBUG"
+   MAKEOPTS="$MAKEOPTS -j1"
+   CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra"
+   DEBUG="yes"
+else
+   DEFS="$DEFS -DNDEBUG"
+   DEBUG="no"
+fi
+
 CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -I/usr/local/include"
 LDFLAGS="$LDFLAGS -L/usr/local/lib"
 CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -I/usr/local/include"
 LDFLAGS="$LDFLAGS -L/usr/local/lib"
-DEBUG="yes"
 
 if [ "$sys" = "Linux" ]
 then
 
 if [ "$sys" = "Linux" ]
 then
index 8a34c4fc9d80e90300283ba292c1cd8fc39b703e..a323148b9ed3c9787c58fd029a9d5a9e49060c68 100755 (executable)
@@ -35,23 +35,15 @@ MIN_XMLRPCC_VERSION="1.06.27"
 XMLRPC_FEATURES="c++2 abyss-server"
 
 
 XMLRPC_FEATURES="c++2 abyss-server"
 
 
-if [ -z "$1" ]
+if [ "$1" = "debug" ]
 then
 then
+    DEFS="$DEFS -DDEBUG"
+    MAKEOPTS="$MAKEOPTS -j1"
+    CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall"
+    DEBUG="yes"
+else
     DEFS="$DEFS -DNDEBUG"
     DEFS="$DEFS -DNDEBUG"
-    MAKEOPTS="-j1"
     DEBUG="no"
     DEBUG="no"
-else
-    if [ "$1" = "debug" ]
-    then
-        DEFS="$DEFS -DDEBUG"
-        MAKEOPTS="-j1"
-        CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall"
-        DEBUG="yes"
-    else
-        DEFS="$DEFS -DNDEBUG"
-        MAKEOPTS="-j1"
-        DEBUG="no"
-    fi
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
 fi
 
 CXXFLAGS="$CXXFLAGS -I/usr/local/include"