3 echo "This one needs adaption..."
8 SCRATCH="$CURRDIR/release-build"
9 WORKDIR="$SCRATCH/$VERSION"
10 EXCLUDE="$SCRATCH/exclude.$$"
11 KBLDDIR="$WORKDIR/l4/kernel/fiasco/build"
14 KERNPKG="l4/kernel/fiasco"
15 USERPKG="$(echo l4/COPYING l4/LICENSING l4/Makefile \
16 l4/tool/preprocess/src/preprocess)"
20 trap "rm -rf $EXCLUDE && exit 1" 1 2 15
21 trap "rm -rf $EXCLUDE && exit 0" 0
25 echo "$SCRATCH exists, please remove it before calling $0."
29 # Create a temporary working directory
33 # Create file blacklist
34 echo '*CVS*' > $EXCLUDE
35 echo '.cvsignore' >> $EXCLUDE
37 # Check out Userland stuff
38 (cd $WORKDIR && cvs -d $CVSHOME co $USERPKG)
40 # Create Userland archive
41 (cd $SCRATCH && tar -X $EXCLUDE -cvpf $VERSION.tar $VERSION/l4)
43 # Check out Kernel stuff
44 (cd $WORKDIR && cvs -d $CVSHOME co $KERNPKG)
46 # mv README and CHANGES down to root of the archive so that users have
47 # something to read when they cd into fiasco-*
48 mv $WORKDIR/l4/kernel/fiasco/README $WORKDIR/l4/kernel/fiasco/CHANGES $WORKDIR
49 (cd $SCRATCH && tar -rvpf $VERSION.tar $VERSION/README $VERSION/CHANGES )
51 # Add kernel to archive
52 (cd $SCRATCH && tar -X $EXCLUDE -rvpf $VERSION.tar $VERSION/l4/kernel/fiasco)
54 echo "Compressing tar files..."
57 gzip -c9 $VERSION.tar > $VERSION.tar.gz
60 # Checksums for everyone
61 md5sum $VERSION.tar.gz >> $VERSION.tar.gz.md5
62 md5sum $VERSION.tar.bz2 >> $VERSION.tar.bz2.md5