|
Last change
on this file since 5 was 1, checked in by Paul Smedley, 10 years ago |
|
Initial commit of Heimdal 1.5.3
|
|
File size:
789 bytes
|
| Line | |
|---|
| 1 | dnl $Id$
|
|---|
| 2 | dnl
|
|---|
| 3 | dnl
|
|---|
| 4 | dnl output a C header-file with some version strings
|
|---|
| 5 | dnl
|
|---|
| 6 |
|
|---|
| 7 | AC_DEFUN([AC_KRB_VERSION],[
|
|---|
| 8 | cat > include/newversion.h.in <<FOOBAR
|
|---|
| 9 | const char *${PACKAGE_TARNAME}_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
|
|---|
| 10 | const char *${PACKAGE_TARNAME}_version = "$PACKAGE_STRING";
|
|---|
| 11 | FOOBAR
|
|---|
| 12 |
|
|---|
| 13 | if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
|
|---|
| 14 | echo "include/version.h is unchanged"
|
|---|
| 15 | rm -f include/newversion.h.in
|
|---|
| 16 | else
|
|---|
| 17 | echo "creating include/version.h"
|
|---|
| 18 | User=${USER-${LOGNAME}}
|
|---|
| 19 | Host=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
|---|
| 20 | Date=`date`
|
|---|
| 21 | mv -f include/newversion.h.in include/version.h.in
|
|---|
| 22 | sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
|
|---|
| 23 | fi
|
|---|
| 24 | ])
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.