From 55e7afa4ea6aec6ed4da56e591ad7b3592ccd749 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 27 Apr 2012 12:29:35 +1000 Subject: [PATCH] check if the pdf version of the ARM needs to be committed --- util/commit-arm.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 util/commit-arm.sh diff --git a/util/commit-arm.sh b/util/commit-arm.sh new file mode 100644 index 0000000000..dbdcafe987 --- /dev/null +++ b/util/commit-arm.sh @@ -0,0 +1,9 @@ +ps=`git log -1 --date=raw --pretty=format:%ad -- doc/arm/Bv9ARM.pdf | awk '{print $1;}'` +for f in doc/arm/*.html +do + ts=`git log -1 --date=raw --pretty=format:%ad -- $f | awk '{print $1;}'` + if test ${ts:-0} -gt ${ps:-0} + then + echo commit needed. + fi +done