|
Revision 316, 0.8 kB
(checked in by hollow, 2 years ago)
|
split wrappers, vstatd and lucid
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/bin/bash |
|---|
| 2 |
|
|---|
| 3 |
proj="vcd" |
|---|
| 4 |
svnroot="http://svn.linux-vserver.org/svn/${proj}" |
|---|
| 5 |
|
|---|
| 6 |
usage() { |
|---|
| 7 |
echo "Usage: mkrelease" |
|---|
| 8 |
} |
|---|
| 9 |
|
|---|
| 10 |
die() { |
|---|
| 11 |
echo $1 |
|---|
| 12 |
exit ${2:-1} |
|---|
| 13 |
} |
|---|
| 14 |
|
|---|
| 15 |
ver=`grep AC_INIT configure.ac | awk '{ print $2 }'` |
|---|
| 16 |
ver=${ver/,} |
|---|
| 17 |
|
|---|
| 18 |
echo "Creating release tag... " |
|---|
| 19 |
|
|---|
| 20 |
svn copy ${svnroot}/trunk ${svnroot}/tags/release-${ver} \ |
|---|
| 21 |
-m "Tagging the ${ver} release of the ${proj} project" &>/dev/null || die "svn copy failed" |
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
echo "Running autotools..." |
|---|
| 25 |
|
|---|
| 26 |
make -f Makefile.svn &>/dev/null || die "make failed" |
|---|
| 27 |
mkdir build &>/dev/null |
|---|
| 28 |
pushd build/ &>/dev/null || die "popd failed" |
|---|
| 29 |
|
|---|
| 30 |
echo "Make dist tarball..." |
|---|
| 31 |
../configure &>/dev/null || die "configure failed" |
|---|
| 32 |
make dist &>/dev/null || die "make dist failed" |
|---|
| 33 |
|
|---|
| 34 |
for i in *.tar.bz2 *.tar.gz; do |
|---|
| 35 |
md5sum $i > $i.md5 |
|---|
| 36 |
done |
|---|
| 37 |
|
|---|
| 38 |
echo "Tarball ist at `pwd`" |
|---|
| 39 |
|
|---|
| 40 |
popd &>/dev/null || die "popd failed" |
|---|