Permalink
Browse files

Take a bootstrap version as the argument to the script.

  • Loading branch information...
mkennedy
mkennedy committed Jan 27, 2008
1 parent 866512e commit ef8585b87406f1bd724c7ba5706b1c6948ba6453
Showing with 13 additions and 6 deletions.
  1. +13 −6 lispy/bootstrap.sh
View
@@ -1,5 +1,12 @@
#!/bin/bash
+BOOTSTRAP_VERSION=$1
+
+if [ -z "$BOOTSTRAP_VERSION" ]; then
+ echo "You must specificy the bootstrap version."
+ exit 1
+fi
+
set -x
SOURCES='http://common-lisp.net/project/lispy/repository/distfiles'
@@ -28,7 +35,7 @@ lispy-0.4.tar.gz
puri-1.5.1.tar.gz
salza-0.7.4.tar.gz
split-sequence-2002-04-10.tar.gz
-trivial-gray-streams-2006-09-16-lispy.tar.gz
+trivial-gray-streams-2006-09-16.tar.gz
usocket-0.3.5.tar.gz'
TMP=`mktemp -d -t bootstrap.sh.XXXXXX`
@@ -69,8 +76,8 @@ EOF
sbcl --no-userinit --no-sysinit --load $TMP/load.lisp
-DATE=`date -I`
-cp -a $TMP/lispy-all/ $TMP/lispy-all-$DATE
-find $TMP/lispy-all-$DATE -type f -name \*.fasl -print0 |xargs -0 rm -f
-rm -rf $TMP/lispy-all-$DATE/distfiles/*
-tar cfz ~/lispy-all-$DATE.tar.gz -C $TMP lispy-all-$DATE
+cp -a $TMP/lispy-all/ $TMP/lispy-all-$BOOTSTRAP_VERSION
+find $TMP/lispy-all-$BOOTSTRAP_VERSION -type f -name \*.fasl -print0 |xargs -0 rm -f
+rm -rf $TMP/lispy-all-$BOOTSTRAP_VERSION/distfiles/*
+tar cfz ~/lispy-all-$BOOTSTRAP_VERSION.tar.gz -C $TMP lispy-all-$BOOTSTRAP_VERSION
+

0 comments on commit ef8585b

Please sign in to comment.