[cmucl-cvs] [git] CMU Common Lisp branch master updated. snapshot-2013-02-2-g878cb88

Raymond Toy rtoy at common-lisp.net
Sat Feb 2 18:50:52 UTC 2013


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, master has been updated
       via  878cb8828beb357b9cbfdd392ceb714cc903f185 (commit)
       via  e7999980594850508d3a0f223fd62ba230cf7857 (commit)
      from  9f423c672ba470c71c7d8e4164d3283e4f4b1044 (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 878cb8828beb357b9cbfdd392ceb714cc903f185
Author: Raymond Toy <toy.raymond at gmail.com>
Date:   Sat Feb 2 10:50:45 2013 -0800

    Update.

diff --git a/src/general-info/release-20e.txt b/src/general-info/release-20e.txt
index c10a25c..84e4b8b 100644
--- a/src/general-info/release-20e.txt
+++ b/src/general-info/release-20e.txt
@@ -60,6 +60,9 @@ New in this release:
   * Improvements to the PCL implementation of CLOS:
 
   * Changes to building procedure:
+    * In make-dist.sh, the version is now optional.  If not given, a
+      version is derived from the git hash returned by "git
+      describe". 
 
 This release is not binary compatible with code compiled using CMUCL
 20d; you will need to recompile FASL files. 

commit e7999980594850508d3a0f223fd62ba230cf7857
Author: Raymond Toy <toy.raymond at gmail.com>
Date:   Sat Feb 2 10:49:53 2013 -0800

    Make the version arg optional.
    
    If the version is not specified, determine a default version based on
    the git hash returned by git describe.  Thus, for tagged snapshot
    builds, the version will automatically be chosen from the tag, with
    "snapshot-" removed.

diff --git a/bin/make-dist.sh b/bin/make-dist.sh
index feb47a4..c79a06a 100755
--- a/bin/make-dist.sh
+++ b/bin/make-dist.sh
@@ -12,7 +12,7 @@
 # $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/tools/make-dist.sh,v 1.20 2011/04/11 16:34:49 rtoy Exp $
 
 usage() {
-    echo "make-dist.sh: [-hbg] [-G group] [-O owner] [-I destdir] [-M mandir] dir version [arch os]"
+    echo "make-dist.sh: [-hbg] [-G group] [-O owner] [-I destdir] [-M mandir] dir [version arch os]"
     echo "  -h           This help"
     echo "  -b           Use bzip2 compression"
     echo "  -g           Use gzip compression"
@@ -40,6 +40,9 @@ usage() {
     echo "<arch>, and <os> are given values, and <c> is gz or bz2 depending"
     echo "on the selected compression method."
     echo ""
+    echo "If version is not given, then a version is determined automatically"
+    echo "based on the result of git describe."
+    echo ""
     echo "If arch and os are not given, the script will attempt to figure an"
     echo "appropriate value for arch and os from the running system."
     echo ""
@@ -100,13 +103,17 @@ do
 	h | \?) usage; exit 1 ;;
     esac
 done
-	
+
+echo $@	
 shift `expr $OPTIND - 1`
 
 # Figure out the architecture and OS
 ARCH=
 OS=
 
+# Figure out the architecture and OS
+def_arch_os
+
 if [ -n "${INSTALL_DIR}" ]; then
     # Doing direct installation
     if [ $# -lt 1 ]; then
@@ -115,10 +122,20 @@ if [ -n "${INSTALL_DIR}" ]; then
 	def_arch_os
     fi
 elif [ $# -lt 2 ]; then
-    usage
+    # Version not specified so choose a version based on the git hash.
+    GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`"
+
+    if expr "X${GIT_HASH}" : 'Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then
+	VERSION=`expr "${GIT_HASH}" : "snapshot-\(.*\)"`
+    fi
+
+    if expr "X${GIT_HASH}" : 'X[0-9][0-9][a-f]' > /dev/null; then
+	VERSION="${GIT_HASH}"
+    fi
+
+    echo "Defaulting version to $VERSION"
 else
-    # Figure out the architecture and OS
-    def_arch_os
+    VERSION="$2"
     if [ $# -eq 3 ]; then
 	ARCH=$3
     elif [ $# -eq 4 ]; then
@@ -147,9 +164,7 @@ fi
 
 TARGET="`echo $1 | sed 's:/*$::'`"
 
-if [ -z "$INSTALL_DIR" ]; then
-    VERSION=$2
-else
+if [ -n "$INSTALL_DIR" ]; then
     VERSION="today"
 fi
 

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

Summary of changes:
 bin/make-dist.sh                 |   31 +++++++++++++++++++++++--------
 src/general-info/release-20e.txt |    3 +++
 2 files changed, 26 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
CMU Common Lisp




More information about the cmucl-cvs mailing list