[cmucl-cvs] [git] CMU Common Lisp branch dynamic-stack-alloc updated. df7a92e034bde0593b71878da6ec25b83e67f696

Alex Goncharov agoncharov at common-lisp.net
Sat Oct 8 11:19:45 UTC 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMU Common Lisp".

The branch, dynamic-stack-alloc has been updated
       via  df7a92e034bde0593b71878da6ec25b83e67f696 (commit)
      from  a252d16802013852583ed6741cde6d8268d6ae06 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit df7a92e034bde0593b71878da6ec25b83e67f696
Author: Alex Goncharov <alex-goncharov at comcast.net>
Date:   Sat Oct 8 07:19:39 2011 -0400

    Trivial improvements to 'tools/create-target.sh' (to be merged to 'master').

diff --git a/tools/create-target.sh b/tools/create-target.sh
index 48481dd..a546349 100755
--- a/tools/create-target.sh
+++ b/tools/create-target.sh
@@ -1,24 +1,27 @@
 #!/bin/sh
 
-quit() { echo "$@" >&2; exit 1; }
+diag() { echo "($prgm_name) $@" >&2; }
+quit() { diag "not OK: $@"; exit 1; }
 usage() {
-    echo "Usage: `basename $0` TARGET-DIR [LISP-VARIANT [MOTIF-VARIANT]]"
+    echo "Usage: $prgm_name TARGET-DIR [LISP-VARIANT [MOTIF-VARIANT]]"
     echo ""
     echo "Creates a directory structure in TARGET-DIR for use in building CMUCL."
     echo "A simple logic is used to find the optional -VARIANT parameters."
     echo ""
     # List possible values for lisp-variant and motif-variant
-    echo "Possible LISP-VARIANTs (don't trust what you see):"
+    echo "Possible LISP-VARIANTs:"
     ( cd src/lisp/ && ls -1 Config.* ) | sed 's;^Config[.];;g' | pr -3at -o 8 || quit "Can't list lisp-variants"
-    echo "Possible MOTIF-VARIANTs (don't trust what you see):"
+    echo "Possible MOTIF-VARIANTs:"
     ( cd src/motif/server/ && ls -1 Config.* ) | sed 's;^Config[.];;g' | pr -3at -o 8 || quit "Can't list lisp-variants"
     exit 2
 }
 
-bld_dir=$1 lisp_variant=$2 motif_variant=$3
+##--
+prgm_name=`basename $0` bld_dir=$1 lisp_variant=$2 motif_variant=$3
 exec 2>&1
 
-case $bld_dir in build-*) :;; *) usage;; esac
+[ -n "$bld_dir" ] || usage
+
 uname_s=`uname -s`
 uname_m=`uname -m 2>/dev/null`
 [ -n "$lisp_variant" ] || {
@@ -74,10 +77,10 @@ case $uname_s in
 esac
 
 # Tell user what's we've configured
-echo "bld_dir=$bld_dir lisp_variant=$lisp_variant ${motif_variant:+motif_variant=$motif_variant}"
+diag "Settings: bld_dir=$bld_dir lisp_variant=$lisp_variant ${motif_variant:+motif_variant=$motif_variant}"
 
 # Create a directory tree that mirrors the source directory tree
-[ -e "$bld_dir" ] && quit "delete this: `ls -ld $bld_dir`"
+[ -e "$bld_dir" ] && quit "Exists: `ls -ld $bld_dir`"
 mkdir -p "$bld_dir"
 (cd src && find . -name .git -prune -o -type d -print) | (cd $bld_dir && xargs mkdir -p) ||
 quit "Can't create target directories"

-----------------------------------------------------------------------

Summary of changes:
 tools/create-target.sh |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
CMU Common Lisp




More information about the cmucl-cvs mailing list