]> sourceware.org Git - systemtap.git/commitdiff
spin-rawhide date command and correct ^Source regex
authorLukas Berk <lberk@redhat.com>
Mon, 5 Nov 2012 18:43:04 +0000 (13:43 -0500)
committerLukas Berk <lberk@redhat.com>
Mon, 5 Nov 2012 18:43:04 +0000 (13:43 -0500)
* scripts/spin-rawhide : adjust date to use +"%a..." syntax instead
 of cutting fields and remove backslash before ^Source sed regex

scripts/spin-rawhide

index 1f9c1aa26df3617aebe976a025ca812b5f2e50f2..52a1366584ead606ce6aedc23ad3cb5d004b3c17 100755 (executable)
@@ -13,7 +13,7 @@ cd systemtap-git
 # We need to use --global for the NAME and USER vars as we're
 # assuming this script can be run from anywhere (ie, not in an
 # already existing git repo)
-DATE=`date | cut -f1,2,3,6 -d" "`
+DATE=`date +"%a %b %d %Y"`
 NAME=`git config --get-all user.name`
 EMAIL=`git config --get-all user.email`
 STAP_MAJOR_VERSION=`grep "^Version:" systemtap.spec`
@@ -41,7 +41,7 @@ git archive --prefix=systemtap-$CHANGELOG_VERSION/ -o ../systemtap/systemtap-$CH
 cd ../systemtap
 
 sed -i "s/Release: .*/Release: $GIT_VERSION_TAG\%\{\?dist\}/" systemtap.spec
-sed -i "s/\^Source:.*/Source: %{name}-%{version}-$GIT_VERSION_TAG.tar.gz/" systemtap.spec
+sed -i "s/^Source:.*/Source: %{name}-%{version}-$GIT_VERSION_TAG.tar.gz/" systemtap.spec
 sed -i "s/\%changelog/\%changelog\n* $DATE $NAME <$EMAIL> - $CHANGELOG_VERSION-$GIT_VERSION_TAG\n- Automated weekly rawhide release\n/" systemtap.spec
 
 echo "Please ensure that you have an up to date fedoraproject SSL certificate, you can achieve this by running fedora-cert -n"
This page took 0.029769 seconds and 5 git commands to generate.