]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix FMRI of built Solaris packages.
authorIvo Raisr <ivosh@ivosh.net>
Tue, 29 Aug 2017 14:13:02 +0000 (16:13 +0200)
committerIvo Raisr <ivosh@ivosh.net>
Tue, 29 Aug 2017 14:13:33 +0000 (16:13 +0200)
solaris/build_solaris_package

index c4ca2c9a337b11a1e310838d106fe5f75e410fa9..19781219d200f13e92bcc4f4620e1db671b5bdfa 100755 (executable)
@@ -58,10 +58,11 @@ create_dirs() {
 }
 
 export_sources() {
-    printf "Exporting sources... "
     old_dir=$( pwd )
     git_commit=$( cd $source_directory; git rev-parse HEAD )
+    echo "Valgrind git commit: $git_commit."
 
+    printf "Exporting sources... "
     git clone ${GITREPO} ${SRCDIR} 2> $TMPDIR/git-clone-valgrind.log.stderr
     (( $? != 0 )) && fail "Failed to clone git repo from $source_directory."
     cd ${SRCDIR}
@@ -72,12 +73,10 @@ export_sources() {
 }
 
 modify_ips_manifest() {
-    valgrind_commit=$( cd $source_directory; git rev-parse --short=11 HEAD )
-    [[ -z $valgrind_commit ]] && fail "Failed to find Valgrind revision."
-
-    echo "Valgrind commit: $valgrind_commit."
+    current_date=$( date '+%Y%m%d' )
+    [[ -z $current_date ]] && fail "Failed to determine current date."
 
-    sed -i -e "s/VVVVV/${valgrind_commit}/" $SRCDIR/$IPS_MANIFEST
+    sed -i -e "s/VVVVV/${current_date}/" $SRCDIR/$IPS_MANIFEST
 }
 
 run_autogen() {