Commit e92b20be authored by Ingvar Hagelund's avatar Ingvar Hagelund

Simpler script to build rpm files from trunk


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5059 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2fd4c8ed
......@@ -68,14 +68,11 @@ build the rpm package:
#!/bin/bash
VERSION=$( awk ' /^Version:/ { print $2 } ' varnish-cache/redhat/varnish.spec )
ln -s varnish-cache varnish-$VERSION
tar $(
find varnish-$VERSION/ -type d -name .svn | \
tar $( find varnish-cache -type d -name .svn | \
while read i; do
echo -n "--exclude $i "
done
) -cvzf varnish-$VERSION.tar.gz varnish-$VERSION/*
rm varnish-$VERSION
) -cvzf varnish-$VERSION.tar.gz varnish-cache/*
rpmbuild -ts varnish-$VERSION.tar.gz
# End of script
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment