summaryrefslogtreecommitdiffstats
path: root/mksrc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mksrc.sh')
-rwxr-xr-xmksrc.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/mksrc.sh b/mksrc.sh
index 1f6fced..649375e 100755
--- a/mksrc.sh
+++ b/mksrc.sh
@@ -10,15 +10,17 @@ RPM=$(php -r "printf('%.2f', $VER);")
svn export -r $REV svn://svn.tuxfamily.org/svnroot/qet/qet/trunk qelectrotech-${VER}-svn${REV}
-sed -e "/displayedVersion/s/${VER}-dev/${VER}-dev (Revision ${REV})/" \
+sed -e "/displayedVersion/s/\"[^\"]*\"/\"${VER}-dev (Revision ${REV})\"/" \
-i qelectrotech-${VER}-svn${REV}/sources/qet.h
+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>"
rpmdate=$(LC_ALL="C" date +"%a %b %d %Y")
-sed -e "s/%changelog/%changelog\n* $rpmdate $vendor - ${RPM}-0.1.svn${REV}\n- Update to ${VER} snapshot revision ${REV}\n/" \
+sed -e "s/%changelog/%changelog\n* $rpmdate $vendor - ${RPM}-0.5.svn${REV}\n- Update to ${VER} snapshot revision ${REV}\n/" \
-e "/global svnrel/s/svnrel.*/svnrel $1/" \
-i *spec