summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2021-10-08 11:23:45 +0200
committerVivien Kraus <vivien@planete-kraus.eu>2021-10-08 12:32:14 +0200
commit3e63c05b8e809a84490767841d84770f535f2f22 (patch)
tree45083f36408c6e6b11e289269c1237f79064bece /bootstrap
parentd9b887149ae5e94c9eba4acc7fb5bec027d3114b (diff)
guix: restore the manual mdate when building it
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index feb3ddf..d18d9f7 100755
--- a/bootstrap
+++ b/bootstrap
@@ -18,7 +18,12 @@
if [ -f .manual-mdate ]
then
- touch -t "$(date -d $(cat .manual-mdate) '+%Y%m%d%H%M.%S')" doc/disfluid.texi
+ MANUAL_MDATE="$(cat .manual-mdate)"
+ MANUAL_MDATE_TOUCH="$(date -d $MANUAL_MDATE '+%Y%m%d%H%M.%S')"
+ >&2 echo "Changing the manual date to $MANUAL_MDATE_TOUCH (from $MANUAL_MDATE)."
+ touch -m -t "$MANUAL_MDATE_TOUCH" doc/disfluid.texi
+else
+ >&2 echo "Please write the last modification date in .manual-mdate, if it’s not the modification date of doc/disfluid.texi."
fi
autoreconf -vif || exit 1