Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112580176
D48718.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
908 B
Referenced Files
None
Subscribers
None
D48718.diff
View Options
Index: sys/conf/newvers.sh
===================================================================
--- sys/conf/newvers.sh
+++ sys/conf/newvers.sh
@@ -271,6 +271,8 @@
modified=yes
fi
git=" ${git}"
+
+ timestamp=$($git_cmd show -s --format=%ct HEAD 2>/dev/null)
fi
if [ -n "$gituprevision" ] ; then
@@ -297,6 +299,13 @@
VERINFO="${VERSION} #${v}${svn}${git}${gitup}${hg}: ${t}"
VERSTR="${VERINFO}\\n ${u}@${h}:${d}\\n"
fi
+if [ -n "$timestamp" ]; then
+ TSTAMP="#define SOURCE_TIMESTAMP ${timestamp}
+"
+else
+ TSTAMP=
+
+fi
vers_content_new=$(cat << EOF
$COPYRIGHT
@@ -311,7 +320,7 @@
#define SCCSSTR "@(#)${VERINFO}"
#define VERSTR "${VERSTR}"
#define RELSTR "${RELEASE}"
-
+${TSTAMP}
const char sccs[sizeof(SCCSSTR) > 128 ? sizeof(SCCSSTR) : 128] = SCCSSTR;
const char version[sizeof(VERSTR) > 256 ? sizeof(VERSTR) : 256] = VERSTR;
const char compiler_version[] = "${compiler_v}";
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 2:38 AM (15 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17237522
Default Alt Text
D48718.diff (908 B)
Attached To
Mode
D48718: newvers: Include a src timestamp in vers.c
Attached
Detach File
Event Timeline
Log In to Comment