Forráskód Böngészése

* Improved build for TCL Build (-T)
Made note about it in configure


svn: 334

Bryan Drewery 22 éve
szülő
commit
2bd9d5d908
3 módosított fájl, 16 hozzáadás és 5 törlés
  1. 2 1
      Makefile.in
  2. 12 2
      build
  3. 2 2
      configure

+ 2 - 1
Makefile.in

@@ -17,7 +17,8 @@ LEAFEXEC = leaf
 HUBEXEC = hub
 DISTROFILES = config.h.in doc/ misc/ scripts/ ChangeLog Makefile.in build configure pack/ src/
 EXCLUDES = pack/salt.h pack/pack.cfg misc/ind doc/DEVEL src/Makefile src/compat/Makefile src/mod/Makefile \
-           config.cache config.log config.status config.h lush.h stamp.*
+           config.cache config.log config.status config.h lush.h stamp.* misc/.cvsignore src/compat/.cvsignore \
+           src/mod/dns.mod/.cvsignore src/mod/.cvsignore src/.cvsignore .cvsignore misc/commit misc/fstrings
 
 # defaults
 CC = @CC@

+ 12 - 2
build

@@ -11,10 +11,11 @@ echo "*** wraith v${ver}/${numver} builder ***"
 
 usage() 
 {
-    echo "Usage: $0 [-d] [-c] [-t dir] type"
+    echo "Usage: $0 [-d] [-c] [-T] [-t dir] type"
     echo "	-c	   - Cleans up old binaries/files before compile 	(default: off)"
     echo "	-d	   - Builds a debug package. 				(default: off)"
     echo "	-t dir	   - Where to search for TCL libraries. 		(usually not needed)"
+    echo "	-T	   - Builds TCL if it is not on the system		(defauly: off)"
     echo "	type	   - One of the following: all, leaf, hub."
 }
 
@@ -25,13 +26,15 @@ leaf=0
 clean=0
 type=
 tcldir=
+buildtcl=0
 
-while getopts t:cdh opt ; do
+while getopts t:Tcdh opt ; do
         case "$opt" in
 	c) clean=1 ;;
         d) debug=1 ;;
 	t) tcldir="$OPTARG" ;;
 	h) usage; exit 0 ;;
+	T) buildtcl=1 ;;
         *) usage; exit 1 ;;
 
         esac
@@ -39,6 +42,13 @@ done
 
 shift $(($OPTIND - 1))
 
+if [ $buildtcl = "1" ]; then
+ echo "Hold tight"
+ misc/maketcl
+ rm -rf tcl8.4.4*
+ echo "Done. (You must run ./build again with normal parameters)"
+ exit 0
+fi
 
 if test -z "$1"; then
  usage

+ 2 - 2
configure

@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 1.4 .
+# From configure.ac Revision: 1.1 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59.
 #
@@ -12130,7 +12130,7 @@ configure: error:
 
   OR
 
-  Just type: misc/maketcl
+  Just type: ./build -T
 
 EOF
   exit 1