CMUCL commit: intl-branch src/tools (build-world.sh build.sh)

Raymond Toy rtoy at common-lisp.net
Mon Feb 8 20:48:55 CET 2010


    Date: Monday, February 8, 2010 @ 14:48:55
  Author: rtoy
    Path: /project/cmucl/cvsroot/src/tools
     Tag: intl-branch

Modified: build-world.sh build.sh

Create the cmucl.pot template file on the last build.  (Should
probably implement this in a different way instead of setting an
environment variable and passing that to build-world.sh?)

build.sh:
o New option -P to tell us to generate the pot file, which is
  generated only on the last build.  (Should we do this by default and
  make -P disable this?)

build-world.sh:
o Dump the pot file(s) if MAKE_POT envvar is set.


----------------+
 build-world.sh |    5 +++++
 build.sh       |   10 ++++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)


Index: src/tools/build-world.sh
diff -u src/tools/build-world.sh:1.4 src/tools/build-world.sh:1.4.32.1
--- src/tools/build-world.sh:1.4	Fri Oct 21 09:44:16 2005
+++ src/tools/build-world.sh	Mon Feb  8 14:48:55 2010
@@ -21,6 +21,10 @@
 	shift
 fi
 
+if [ -n "$MAKE_POT" ]; then
+    SAVEPOT='(intl::dump-pot-files :output-directory "target:i18n/locale/")'
+fi
+
 $LISP "$@" -noinit -nositeinit <<EOF
 (in-package :cl-user)
 
@@ -56,5 +60,6 @@
 (setq *gc-verbose* t *interactive* t)
 
 (load "target:tools/worldbuild")
+$SAVEPOT
 (ext:quit)
 EOF
Index: src/tools/build.sh
diff -u src/tools/build.sh:1.28 src/tools/build.sh:1.28.2.1
--- src/tools/build.sh:1.28	Mon Feb  1 10:04:51 2010
+++ src/tools/build.sh	Mon Feb  8 14:48:55 2010
@@ -32,7 +32,7 @@
 #
 # For more information see src/BUILDING.
 #
-# $Header: /project/cmucl/cvsroot/src/tools/build.sh,v 1.28 2010-02-01 15:04:51 rtoy Exp $
+# $Header: /project/cmucl/cvsroot/src/tools/build.sh,v 1.28.2.1 2010-02-08 19:48:55 rtoy Exp $
 #
 
 ENABLE2="yes"
@@ -131,7 +131,7 @@
 }
 
 FPU_MODE=
-while getopts "123o:b:v:uB:C:i:f:?" arg
+while getopts "123Po:b:v:uB:C:i:f:?" arg
 do
     case $arg in
 	1) ENABLE2="no" ;;
@@ -146,6 +146,7 @@
 	B) bootfiles="$bootfiles $OPTARG" ;;
         i) INTERACTIVE_BUILD="$OPTARG" ;;
 	f) FPU_MODE="-fpu $OPTARG" ;;
+        P) BUILD_POT=yes ;;
 	\?) usage
 	    ;;
     esac
@@ -185,6 +186,11 @@
 OLDLISP="${BASE}-3/lisp/lisp -noinit $FPU_MODE"
 ENABLE=$ENABLE4
 
+if [ ${BUILD_POT} = "yes" ]; then
+   MAKE_POT=yes
+   export MAKE_POT
+fi
+
 BUILD=3
 buildit
 



More information about the cmucl-commit mailing list