- Timestamp:
- May 30, 2009, 2:51:12 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 33539f7
- Parents:
- c50f589
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/locker-build
rde9edab r3043064 4 4 # Build script to build BarnOwl for the locker. 5 5 6 # Usage: locker-build [-n] [-o OUTPUT-TGZ] VERSIONSOURCE-TARBALL6 # Usage: locker-build [-n] [-o OUTPUT-TGZ] SOURCE-TARBALL 7 7 # -n is a dry-run, and drops to a shell in the build directory 8 8 # -o does the install into a temporary directory and tars it into the 9 9 # specified tarball instead. 10 10 # SOURCE-TARBALL is a source tarball, created by do-release 11 # VERSION should be of the form 'barnowl-VERSION'12 #13 # TODO: Scrape $VERSION from the tarball14 11 15 12 die() { … … 25 22 26 23 usage () { 27 echo "Usage: $0 [-n] [-o OUTPUT-TGZ] VERSIONSOURCE-TARBALL"24 echo "Usage: $0 [-n] [-o OUTPUT-TGZ] SOURCE-TARBALL" 28 25 exit 2; 29 26 } … … 52 49 done 53 50 54 NAME="$1" 55 SRC_TGZ="$2" 51 SRC_TGZ="$1" 56 52 57 test -z "$NAME" && usage58 53 test -z "$SRC_TGZ" && usage 59 54 … … 80 75 ( 81 76 cd "$TMPDIR"/* || die "Unable to cd to $TMPDIR" 77 VERS=$(perl -ne 'print $1 if m{^#define\s*OWL_VERSION_STRING\s*"([^"]+)"}' owl.h) 78 test -z "$VERS" && die "Unable to detect barnowl version." 79 80 echo "Building BarnOwl version $VERS" 82 81 83 82 BARNOWL="/afs/sipb.mit.edu/project/barnowl/arch/$ATHENA_SYS" … … 87 86 LDFLAGS="-L$BARNOWL/lib -Wl,-R$BARNOWL/lib" \ 88 87 ./configure --exec-prefix="/mit/barnowl/arch/$ATHENA_SYS" \ 89 --prefix="/mit/barnowl/builds/$NAME" --mandir=/mit/barnowl/man \ 88 --prefix="/mit/barnowl/builds/barnowl-$VERS" --mandir=/mit/barnowl/man \ 89 --program-suffix="-$VERS" \ 90 90 PROTECT_CFLAGS=-fno-stack-protector \ 91 91 || die "configure failed" … … 98 98 fi 99 99 100 $MAKE -j$CPUS EXE=$NAMEall || die "make failed"100 $MAKE -j$CPUS all || die "make failed" 101 101 102 102 if [ -n "$DRYRUN" ]; then … … 106 106 if [ -n "$OUT_TGZ" ]; then 107 107 mkdir tgz 108 $MAKE EXE=$NAMEDESTDIR=tgz install || die "Install failed"108 $MAKE DESTDIR=tgz install || die "Install failed" 109 109 else 110 $MAKE EXE=$NAMEinstall || die "Install failed"110 $MAKE install || die "Install failed" 111 111 fi 112 112 fi
Note: See TracChangeset
for help on using the changeset viewer.