aboutsummaryrefslogtreecommitdiff
path: root/common/wrappers/date.sh
diff options
context:
space:
mode:
authorEnno Boland <g@s01.de>2016-03-03 10:31:57 +0000
committerEnno Boland <g@s01.de>2016-03-03 10:34:07 +0000
commit5a2a63645fd9c165b1db77d85f1edb91e9348a82 (patch)
treef435bbc11769b400bd613f5374d6628fdd0a5214 /common/wrappers/date.sh
parent8c2840b1740b9af31f50213fbe15a9d8a440e6b9 (diff)
downloadvoid-packages-5a2a63645fd9c165b1db77d85f1edb91e9348a82.tar
void-packages-5a2a63645fd9c165b1db77d85f1edb91e9348a82.tar.gz
void-packages-5a2a63645fd9c165b1db77d85f1edb91e9348a82.tar.bz2
void-packages-5a2a63645fd9c165b1db77d85f1edb91e9348a82.tar.lz
void-packages-5a2a63645fd9c165b1db77d85f1edb91e9348a82.tar.xz
void-packages-5a2a63645fd9c165b1db77d85f1edb91e9348a82.tar.zst
void-packages-5a2a63645fd9c165b1db77d85f1edb91e9348a82.zip
common/wrappers: add date and uname wrappers.
uname: overwrites the hostname in command uname with the string 'void'. date: uses the timestamp read from SOURCE_DATE_EPOCH as date.
Diffstat (limited to 'common/wrappers/date.sh')
-rw-r--r--common/wrappers/date.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/wrappers/date.sh b/common/wrappers/date.sh
new file mode 100644
index 00000000000..2baed65f59d
--- /dev/null
+++ b/common/wrappers/date.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ "$SOURCE_DATE_EPOCH" ]; then
+ post="--date @$SOURCE_DATE_EPOCH"
+fi
+exec /usr/bin/date $@ $post