summaryrefslogtreecommitdiffstats
path: root/mksrc.sh
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-01-29 08:04:13 +0100
committerRemi Collet <fedora@famillecollet.com>2014-01-29 08:04:13 +0100
commitc00b04169e87fb855e8a25498cad3ddf294ed903 (patch)
treeace6273c6767ca2f6e8ab5d79300902d6eebc597 /mksrc.sh
parentda9b5ca762fa4414873862b9e51589a5b5a2a914 (diff)
qelectrotech: 2788
Diffstat (limited to 'mksrc.sh')
-rwxr-xr-xmksrc.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/mksrc.sh b/mksrc.sh
index 58670d1..427a170 100755
--- a/mksrc.sh
+++ b/mksrc.sh
@@ -5,7 +5,8 @@ if [ "$1" = "" ]; then
exit 1
fi
REV=$1
-VER=${2-0.3}
+VER=${2-0.4}
+RPM=$(php -r "printf('%.2f', $VER);")
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}
@@ -14,6 +15,6 @@ 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/" \
+sed -e "s/%changelog/%changelog\n* $rpmdate $vendor - ${RPM}-0.1.svn${REV}\n- Update to ${VER} snapshot revision ${REV}\n/" \
-e "/global svnrel/s/svnrel.*/svnrel $1/" \
-i *spec