summaryrefslogtreecommitdiffstats
path: root/mksrc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mksrc.sh')
-rwxr-xr-xmksrc.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/mksrc.sh b/mksrc.sh
index 0ab80dc..7c8ae5c 100755
--- a/mksrc.sh
+++ b/mksrc.sh
@@ -5,10 +5,11 @@ if [ "$1" = "" ]; then
exit 1
fi
REV=$1
-VER=${2-0.51}
+VER=${2-0.6}
+PRE=rc1
RPM=$(php -r "printf('%.2f', $VER);")
-svn export -r $REV svn://svn.tuxfamily.org/svnroot/qet/qet/trunk qelectrotech-${VER}-svn${REV}
+svn export -r $REV svn://svn.tuxfamily.org/svnroot/qet/qet/trunk qelectrotech-${VER}${PRE}-svn${REV}
sed -e "/displayedVersion/s/\"[^\"]*\"/\"${VER}-dev (Revision ${REV})\"/" \
-i qelectrotech-${VER}-svn${REV}/sources/qet.h
@@ -18,9 +19,9 @@ grep 'displayedVersion' qelectrotech-${VER}-svn${REV}/sources/qet.h
tar czf qelectrotech-${VER}-svn${REV}.tgz qelectrotech-${VER}-svn${REV}
rm -rf qelectrotech-${VER}-svn${REV}
-vendor="Remi Collet <remi@fedoraproject.org>"
+vendor="Remi Collet <remi@remirepo.net>"
rpmdate=$(LC_ALL="C" date +"%a %b %d %Y")
-sed -e "s/%changelog/%changelog\n* $rpmdate $vendor - ${RPM}-0.5.svn${REV}\n- Update to ${VER} snapshot revision ${REV}\n/" \
+sed -e "s/%changelog/%changelog\n* $rpmdate $vendor - ${RPM}-2.svn${REV}\n- Update to ${VER} snapshot revision ${REV}\n/" \
-e "/global svnrel/s/svnrel.*/svnrel $1/" \
-i *spec