[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203

Stephane Popinet popinet at users.sf.net
Fri May 15 02:54:28 UTC 2009


The following commit has been merged in the upstream branch:
commit 6403043f27b052001afd88508ea1958a819035a6
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Wed Aug 15 15:06:45 2007 +1000

    Automated darcs versioning ignores changes in the doc/ directory
    
    darcs-hash:20070815050645-d4795-01fb112ea77229fad72b239db3cba71ec2ad4682.gz

diff --git a/src/darcsversion.sh b/src/darcsversion.sh
index 77432ad..28a60a9 100755
--- a/src/darcsversion.sh
+++ b/src/darcsversion.sh
@@ -2,11 +2,13 @@
 
 version=`darcs changes --last=1 --xml-output | \
     awk 'BEGIN{RS=" ";FS="="}{if ($1 == "date") print substr($2,4,6) "-" substr($2,10,6);}'`
-changes=`darcs whatsnew | head -n 1`
-
-if [ "$changes" != "No changes!" ] ; then
-    version="$version + local changes"
-fi
+changes=`darcs whatsnew -s | awk '{
+  if ($1 == "M" && substr($2,1,6) != "./doc/") {
+    print " + local changes";
+    exit 0;
+  }
+}'`
+version="$version$changes"
 
 if test -f version.h ; then
     oldversion=`awk '{if ($2 == "GFS_BUILD_VERSION") print $0;}' < version.h`

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list