From 59e75fd52f50351461ded5aff330c5eb7510b4f1 Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Wed, 15 Sep 2010 23:59:39 +0000
Subject: [PATCH] Reverse the meaning of the -P option.  Now, -P means don't
 generate new pot files and don't update the translations (po and mo files).

---
 tools/build.sh | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/tools/build.sh b/tools/build.sh
index 7f641b0cf..a0a28ab6c 100755
--- a/tools/build.sh
+++ b/tools/build.sh
@@ -32,7 +32,7 @@
 #
 # For more information see src/BUILDING.
 #
-# $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/tools/build.sh,v 1.32 2010/08/31 22:24:09 rtoy Exp $
+# $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/tools/build.sh,v 1.33 2010/09/15 23:59:39 rtoy Exp $
 #
 
 ENABLE2="yes"
@@ -86,7 +86,8 @@ usage ()
     echo '               you would give to create-target.sh for the lisp'
     echo '               and motif variant.'
     echo '    -f mode   FPU mode:  x87, sse2, or auto.  Default is auto'
-    echo '    -P        On the last build, generate cmucl.pot'
+    echo '    -P        On the last build, do NOT generate cmucl.pot and do NOT update'
+    echo '               the translations.'
     echo "    -?        This help message"
     echo "    -w        Specify a different build-world.sh script"
     exit 1
@@ -133,6 +134,7 @@ buildit ()
 
 FPU_MODE=
 BUILDWORLD="$TOOLDIR/build-world.sh"
+BUILD_POT="yes"
 
 while getopts "123Po:b:v:uB:C:i:f:w:?" arg
 do
@@ -149,7 +151,7 @@ do
 	B) bootfiles="$bootfiles $OPTARG" ;;
         i) INTERACTIVE_BUILD="$OPTARG" ;;
 	f) FPU_MODE="-fpu $OPTARG" ;;
-        P) BUILD_POT=yes ;;
+        P) BUILD_POT=no ;;
         w) BUILDWORLD="$OPTARG" ;;
 	\?) usage
 	    ;;
@@ -188,13 +190,14 @@ BUILD_WORLD2=
 buildit
 
 TARGET=$BASE-4
-MAKE_TARGET="all translations"
+MAKE_TARGET="all"
 CLEAN_FLAGS="-K all"
 OLDLISP="${BASE}-3/lisp/lisp -noinit $FPU_MODE"
 ENABLE=$ENABLE4
 
 if [ "${BUILD_POT}" = "yes" ]; then
    MAKE_POT=yes
+   MAKE_TARGET="all translations"
    export MAKE_POT
 fi
 
-- 
GitLab