about summary refs log tree commit diff
path: root/buildtools/stamp-date
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/stamp-date')
-rwxr-xr-xbuildtools/stamp-date23
1 files changed, 23 insertions, 0 deletions
diff --git a/buildtools/stamp-date b/buildtools/stamp-date
new file mode 100755
index 00000000..808bab79
--- /dev/null
+++ b/buildtools/stamp-date
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# Copyright (C) 1993 by Oliver Trepte.
+#
+# Permission to use, copy, modify, and distribute this software and its
+# documentation for any purpose and without fee is hereby granted, provided
+# that the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation.  This software is provided "as is" without express or
+# implied warranty.
+#
+DATE=`date`
+LOGNAME_OR_UNKNOWN=${LOGNAME:-UNKNOWN}
+USER=${USER:-$LOGNAME_OR_UNKNOWN}
+if [ $USER = "UNKNOWN" ]; then
+    USER=`whoami`
+fi
+
+echo "/* This file tells the package when it was compiled */"
+echo "/* DO NOT EDIT - THIS FILE IS MAINTAINED AUTOMATICALLY */"
+echo "/* Created by the program 'stamp-date'  */"
+echo "#define COMPILE_TIME \"$DATE\""
+echo "#define COMPILED_BY \"$USER\""