Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lukas However
OpenLDAP
Commits
bf0956d0
Commit
bf0956d0
authored
Mar 28, 2003
by
Howard Chu
Browse files
Use CPP __FILE__ and __TIME__ (not as pretty, but faster) instead of `date`.
So version.c files only need to be generated once.
parent
60ac3f35
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/mkversion
View file @
bf0956d0
...
...
@@ -42,7 +42,6 @@ if test $# != 1 ; then
fi
APPLICATION
=
$1
WHEN
=
`
date
`
WHOWHERE
=
"
$USER
@
`
uname
-n
`
:
`
pwd
`
"
cat
<<
__EOF__
...
...
@@ -56,6 +55,6 @@ static const char copyright[] =
"COPYING RESTRICTIONS APPLY
\n
";
$static
$const
char
$SYMBOL
[] =
"@(#)
\$
$PACKAGE
:
$APPLICATION
$VERSION
(
$WHEN
)
\$\n\t
$WHOWHERE
\n
";
"@(#)
\$
$PACKAGE
:
$APPLICATION
$VERSION
(
" __DATE__ " " __TIME__ "
)
\$\n\t
$WHOWHERE
\n
";
__EOF__
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment