summaryrefslogtreecommitdiffstats
path: root/debian/mk-fix-revdate
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:54:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:54:25 +0000
commit613b5479a576e8b54bc261055d341466fa57a937 (patch)
tree4e8f56ead3c83759cf5c9005d350926275370f66 /debian/mk-fix-revdate
parentAdding upstream version 060+5. (diff)
downloaddracut-613b5479a576e8b54bc261055d341466fa57a937.tar.xz
dracut-613b5479a576e8b54bc261055d341466fa57a937.zip
Adding debian version 060+5-1.debian/060+5-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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