ソースを参照

* Make getrev.sh touch src/main.c if the revision has updated to force a recompile with new REVISION

svn: 3982
Bryan Drewery 17 年 前
コミット
e3308b99e7
1 ファイル変更8 行追加0 行削除
  1. 8 0
      private/getrev.sh

+ 8 - 0
private/getrev.sh

@@ -17,3 +17,11 @@ else
   rev=$(svk info|grep "Mirrored From"|sed -e 's/Mirrored From: .*, Rev. \([0-9]*\)/\1/')
 fi
 echo $rev
+
+### Touch src/main.c if the revision has changed since the last run
+touch private/.revision.cache
+old_rev=$(< private/.revision.cache)
+if ! [ "$old_rev" = "$rev" ]; then
+  touch src/main.c
+  echo $rev > private/.revision.cache
+fi