summaryrefslogtreecommitdiffstats
path: root/debian/mk-fix-revdate
diff options
context:
space:
mode:
Diffstat (limited to 'debian/mk-fix-revdate')
-rwxr-xr-xdebian/mk-fix-revdate8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/mk-fix-revdate b/debian/mk-fix-revdate
new file mode 100755
index 0000000..f16aeca
--- /dev/null
+++ b/debian/mk-fix-revdate
@@ -0,0 +1,8 @@
+#! /bin/bash
+
+> debian/fix-revdate
+for i in $(git grep -L ':revdate:' -- '*.[0-9].asc'); do
+ revdate=$(git log -1 --date=short --pretty='%cd' $i);
+ echo sed -i -e \'"3i:revdate: $revdate"\' $i >> debian/fix-revdate
+done
+chmod a+rx debian/fix-revdate