summaryrefslogtreecommitdiffstats
path: root/debian/mk-fix-revdate
blob: f16aecaf9eb34de46595adfee070000a521079f1 (plain)
1
2
3
4
5
6
7
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