public
Description: A distribution of Aquamacs, SBCL and SLIME which offers the simplest way to run Common Lisp on Mac OS X
Homepage: http://www.newartisans.com/software/readylisp.html
Clone URL: git://github.com/jwiegley/ready-lisp.git
Click here to lend your support to: ready-lisp and make a donation at www.pledgie.com !
ready-lisp / build.sh
100755 68 lines (52 sloc) 1.518 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
 
TMPDIR=/tmp
 
local=false
if [[ "$1" == "--local" ]]; then
local=true
shift 1
fi
 
make=false
if [[ "$1" == "--make" ]]; then
make=true
shift 1
fi
 
PPC_HOST=$1
 
# Bootstrap a Ready Lisp disk image from complete scratch. Just make sure all
# relevant version numbers and URLs have been updated and pushed to the Github
# repository first.
 
HERE=$(pwd)
 
if [[ $make == true && -d $TMPDIR/ready-lisp ]]; then
echo Updating changed files in temporary build tree ...
    rsync -rlpgoDv \
--exclude=.git/ \
--exclude='.git*' \
--exclude='*.dmg' \
--exclude='build.log' \
--exclude='*.fasl' \
./ $TMPDIR/ready-lisp/
else
if [[ -d $TMPDIR/ready-lisp ]]; then
echo Removing previous ready-lisp build ...
rm -fr $TMPDIR/ready-lisp
    fi
 
cd $TMPDIR
 
    if [[ $local == true ]]; then
echo Copying source tree to $TMPDIR/ready-lisp ...
rsync -a ~/src/ready-lisp . || exit 1
    else
echo Cloning ready-lisp from GitHub to $TMPDIR/ready-lisp ...
git clone git://github.com/jwiegley/ready-lisp.git || exit 1
    fi
fi
 
if [[ -n "$PPC_HOST" ]]; then
cd $TMPDIR/ready-lisp && make PPC_HOST=$PPC_HOST || exit 1
else
cd $TMPDIR/ready-lisp && make || exit 1
fi
 
DISK_IMAGE=ReadyLisp-$(date +%Y%m%d).dmg
 
echo Moving final disk image back to source tree ...
mv build/$DISK_IMAGE $HERE
 
echo Zipping disk image to guard against improper MIME types on download ...
cd $HERE && zip -r $DISK_IMAGE.zip $DISK_IMAGE
 
echo Ready Lisp build complete.
 
# build.sh ends here