mirror of
https://github.com/ntop/n2n.git
synced 2024-11-23 18:04:12 +08:00
Shrink autogen by reading VERSION file directly in configure.ac
This commit is contained in:
parent
a9216f1097
commit
4575154e1b
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,7 +2,6 @@
|
||||
*.a
|
||||
*.gz
|
||||
configure
|
||||
configure.ac
|
||||
config.*
|
||||
/Makefile
|
||||
tools/Makefile
|
||||
|
@ -1,11 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
N2N_VERSION_SHORT=$(cat VERSION)
|
||||
|
||||
cat configure.seed | sed \
|
||||
-e "s/@N2N_VERSION_SHORT@/$N2N_VERSION_SHORT/g" \
|
||||
> configure.ac
|
||||
|
||||
rm -f config.h config.h.in *~ Makefile configure #*
|
||||
|
||||
echo "Wait please..."
|
||||
|
@ -1,5 +1,5 @@
|
||||
odnl> Do not add anything above
|
||||
AC_INIT([edge],@N2N_VERSION_SHORT@)
|
||||
AC_INIT([edge], m4_esyscmd([cat VERSION | tr -d '\n']))
|
||||
dnl> Do not add anything above
|
||||
|
||||
N2N_VERSION_SHORT=${PACKAGE_VERSION}
|
@ -3,8 +3,10 @@
|
||||
# Specifically for windows, where installing autoconf looks suspiciously
|
||||
# like boiling the ocean.
|
||||
|
||||
VERSION=$(cat VERSION)
|
||||
|
||||
sed \
|
||||
-e "s%@N2N_VERSION_SHORT@%FIXME%g" \
|
||||
-e "s%@N2N_VERSION_SHORT@%$VERSION%g" \
|
||||
-e "s%@GIT_COMMITS@%FIXME%g" \
|
||||
-e "s%@CC@%gcc%g" \
|
||||
-e "s%@AR@%ar%g" \
|
||||
|
Loading…
Reference in New Issue
Block a user