Selaa lähdekoodia

Changed how TCLDIR is read by build

svn: 88
Bryan Drewery 23 vuotta sitten
vanhempi
commit
20ab026bc9
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 1 1
      build
  2. 2 1
      pack/conf.h

+ 1 - 1
build

@@ -89,7 +89,7 @@ echo "[*] Building pack for $os"
 # Run ./configure, then verify it's ok
 echo "[*] Configuring..."
 umask 077 >/dev/null
-TCLDIR=`cat pack/conf.h 2>&1 | grep "define" | awk '/TCLDIR/ {print $3}' |  sed -e 's/\"//g'`
+TCLDIR=`cat pack/conf.h 2>&1 | grep "//" | awk '/TCLDIR/ {print $2}' |  sed -e 's/\"//g'`
 if test -z ${TCLDIR}
 then
   echo "[*] Searching for TCL in default dirs (edit $packname to change)"

+ 2 - 1
pack/conf.h

@@ -4,7 +4,8 @@
  */
 
 /* The next line defines where the custom TCL build's prefix is.. */
-#define TCLDIR "/home/wheel/bryan"
+/* It MUST stay in the default syntax. */
+//TCLDIR "/home/wheel/bryan"
 
 
 /* Change "define" to "undef" to disable a feature