aboutsummaryrefslogtreecommitdiff
path: root/mksvnpkg.sh
blob: cf14d2fac09f6082a6b48808f389cccf93cb9107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

TEMP=$(mktemp)
expand()
{
	local DIR="$1"
	for fl in $(svn ls "$DIR"); do
		if [ ${fl:(-1)} == "/" ]; then
			expand "${DIR}${fl}"
		else
			echo "${DIR}${fl}" >> $TEMP
		fi
	done
}

echo Building file lists from SVN...
expand ./

OUTNAME="libbu++-r$(svnversion).tar.bz2"
tar -vcT "${TEMP}" | bzip2 -9 > "$OUTNAME"

rm $TEMP

echo Produced "$OUTNAME"