diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-01-28 18:52:43 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-01-28 18:52:43 +0100 |
commit | da9b5ca762fa4414873862b9e51589a5b5a2a914 (patch) | |
tree | 706771e723f731cdd867b7581a53b7f119f795e1 /mksrc.sh |
qelectrotech: import from rawhide + adapt for snapshot
Diffstat (limited to 'mksrc.sh')
-rwxr-xr-x | mksrc.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mksrc.sh b/mksrc.sh new file mode 100755 index 0000000..58670d1 --- /dev/null +++ b/mksrc.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +if [ "$1" = "" ]; then + echo usage $0 REVISION [ VER ] + exit 1 +fi +REV=$1 +VER=${2-0.3} + +svn export -r $REV svn://svn.tuxfamily.org/svnroot/qet/qet/trunk qelectrotech-${VER}-svn${REV} +tar czf qelectrotech-${VER}-svn${REV}.tgz qelectrotech-${VER}-svn${REV} +rm -rf qelectrotech-${VER}-svn${REV} + +vendor="Remi Collet <remi@fedoraproject.org>" +rpmdate=$(LC_ALL="C" date +"%a %b %d %Y") + +sed -e "s/%changelog/%changelog\n* $rpmdate $vendor - ${VER}-2.svn${REV}\n- Update to ${VER} snapshot revision ${REV}\n/" \ + -e "/global svnrel/s/svnrel.*/svnrel $1/" \ + -i *spec |