aboutsummaryrefslogtreecommitdiff
path: root/_scripts
diff options
context:
space:
mode:
Diffstat (limited to '_scripts')
-rwxr-xr-x_scripts/postinfo6
-rwxr-xr-x_scripts/repoinfo2
2 files changed, 4 insertions, 4 deletions
diff --git a/_scripts/postinfo b/_scripts/postinfo
index f31b145..efc70c2 100755
--- a/_scripts/postinfo
+++ b/_scripts/postinfo
@@ -7,15 +7,15 @@ tab="$(printf '\t')"
history="$(git log \
--follow \
--ignore-all-space --diff-filter=AM \
- --date=short --pretty=format:"%cd$tab%an" \
+ --date=unix --pretty=format:"%cd$tab%an" \
-- "$file")"
dates="$(echo "$history" | cut -d"$tab" -f1)"
authors="$(echo "$history" | cut -d"$tab" -f2 | sort -u)"
cat << EOF
-date: $(echo "$dates" | head -n1)
-date_initial: $(echo "$dates" | tail -n1)
+date: '@$(echo "$dates" | head -n1)'
+date_initial: '@$(echo "$dates" | tail -n1)'
edits: $(echo "$dates" | wc -l)
authors:
$(echo "$authors" | sed 's/^/- /')
diff --git a/_scripts/repoinfo b/_scripts/repoinfo
index b413e6e..bce0fa7 100755
--- a/_scripts/repoinfo
+++ b/_scripts/repoinfo
@@ -3,6 +3,6 @@ export LANG=C
cat << EOF
commit: $(git rev-parse HEAD)
slug: $(git describe --always --dirty='*' --abbrev)
-build_date: $(date -Idate)
+build_date: '$(date +'@%s')'
EOF