Commit fa5349be authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] really use english date in version string

From: Andrey Borzenkov <arvidjaar@mail.ru>

LANG is not always enough to force date to english.
parent 00dbb2ea
...@@ -27,7 +27,7 @@ fi ...@@ -27,7 +27,7 @@ fi
UTS_VERSION="#$VERSION" UTS_VERSION="#$VERSION"
if [ -n "$SMP" ] ; then UTS_VERSION="$UTS_VERSION SMP"; fi if [ -n "$SMP" ] ; then UTS_VERSION="$UTS_VERSION SMP"; fi
UTS_VERSION="$UTS_VERSION `LANG=C date`" UTS_VERSION="$UTS_VERSION `LC_ALL=C LANG=C date`"
# Truncate to maximum length # Truncate to maximum length
...@@ -42,7 +42,7 @@ UTS_TRUNCATE="sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/" ...@@ -42,7 +42,7 @@ UTS_TRUNCATE="sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/"
echo \#define UTS_VERSION \"`echo $UTS_VERSION | $UTS_TRUNCATE`\" echo \#define UTS_VERSION \"`echo $UTS_VERSION | $UTS_TRUNCATE`\"
echo \#define LINUX_COMPILE_TIME \"`LANG=C date +%T`\" echo \#define LINUX_COMPILE_TIME \"`LC_ALL=C LANG=C date +%T`\"
echo \#define LINUX_COMPILE_BY \"`whoami`\" echo \#define LINUX_COMPILE_BY \"`whoami`\"
echo \#define LINUX_COMPILE_HOST \"`hostname | $UTS_TRUNCATE`\" echo \#define LINUX_COMPILE_HOST \"`hostname | $UTS_TRUNCATE`\"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment