aboutsummaryrefslogtreecommitdiff
path: root/mksvnpkg.sh
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-08-24 15:24:16 +0000
committerMike Buland <eichlan@xagasoft.com>2009-08-24 15:24:16 +0000
commit728c597690056536a15910fb64a2b6ea104aa975 (patch)
tree882f9dcd9c5683e673beba0fb85122ffefe027bd /mksvnpkg.sh
parent6d4a2e8f5153eefcada061d346aa5d852f2500ee (diff)
downloadlibbu++-728c597690056536a15910fb64a2b6ea104aa975.tar.gz
libbu++-728c597690056536a15910fb64a2b6ea104aa975.tar.bz2
libbu++-728c597690056536a15910fb64a2b6ea104aa975.tar.xz
libbu++-728c597690056536a15910fb64a2b6ea104aa975.zip
Fixed a minor helper in Bu::MemBuf, and corrected some docs on Bu::Stream, the
synopsis line made the canWrite function misleading. I also addad a script that could actually be used for any project, it builds a tarball release of all the files that are in SVN, so it will skip object code and the like.
Diffstat (limited to 'mksvnpkg.sh')
-rwxr-xr-xmksvnpkg.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/mksvnpkg.sh b/mksvnpkg.sh
new file mode 100755
index 0000000..cf14d2f
--- /dev/null
+++ b/mksvnpkg.sh
@@ -0,0 +1,24 @@
1#!/bin/bash
2
3TEMP=$(mktemp)
4expand()
5{
6 local DIR="$1"
7 for fl in $(svn ls "$DIR"); do
8 if [ ${fl:(-1)} == "/" ]; then
9 expand "${DIR}${fl}"
10 else
11 echo "${DIR}${fl}" >> $TEMP
12 fi
13 done
14}
15
16echo Building file lists from SVN...
17expand ./
18
19OUTNAME="libbu++-r$(svnversion).tar.bz2"
20tar -vcT "${TEMP}" | bzip2 -9 > "$OUTNAME"
21
22rm $TEMP
23
24echo Produced "$OUTNAME"