summaryrefslogtreecommitdiffstats
path: root/mksrc.sh
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-01-30 19:24:05 +0100
committerRemi Collet <fedora@famillecollet.com>2015-01-30 19:24:05 +0100
commit8898df10da4159bf7f0b38b9e204ef7b55774db1 (patch)
tree48b132d5c8a29e26d382f3bf8bbe1904f84f8f9a /mksrc.sh
parent7544364395a62b43fafd0d804b9f60f7b93e002c (diff)
qelectrotech-debuginfo-0.40-0.5.svn3658
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