Imported Upstream version 2.7.1

This commit is contained in:
Laurent Bigonville 2013-11-24 16:00:12 +01:00
parent a1fa151fc7
commit 0121794af9
451 changed files with 41339 additions and 10887 deletions

View file

@ -1,24 +1,22 @@
EXTRA_DIST = attribute.h common.h extstate.h parseconf.h proto.h \
state.h timehead.h upsconf.h nut_stdint.h
dist_noinst_HEADERS = attribute.h common.h extstate.h parseconf.h proto.h \
state.h timehead.h upsconf.h nut_stdint.h nut_platform.h
# http://www.gnu.org/software/automake/manual/automake.html#Clean
BUILT_SOURCES = nut_version.h
CLEANFILES = nut_version.h
# magic to include SVN revision number in NUT version string
# magic to include Git version information in NUT version string
nut_version.h: FORCE
@GITREV=`git describe --tags 2>/dev/null | sed 's/^v\([0-9]\)/\1/' `; \
if [ -z "$$GITREV" ]; \
then SVNREV=`LANG=C svnversion -n $(top_srcdir) 2>/dev/null`; \
if [ -z "$$SVNREV" -o "$$SVNREV" = "exported" ]; \
then NUT_VERSION="$(PACKAGE_VERSION)"; \
else NUT_VERSION="$(PACKAGE_VERSION)-$$SVNREV"; \
fi ; \
else NUT_VERSION="$$GITREV"; \
fi ; \
@GITREV=`git describe --tags 2>/dev/null | sed -e 's/^v\([0-9]\)/\1/' -e 's,^.*/,,' ` || GITREV=""; \
echo '/* Autogenerated file. Do not change. */' > _nut_version.h ; \
echo '/* This file was generated by "make". */' >> _nut_version.h ; \
if [ -z "$$GITREV" ]; \
then NUT_VERSION="$(PACKAGE_VERSION)"; \
echo '/* The version number is set by AC_INIT in configure.in. */' >> _nut_version.h ; \
else NUT_VERSION="$$GITREV"; \
echo '/* The version number is determined by the most recent Git tag. */' >> _nut_version.h ; \
fi ; \
echo "#define NUT_VERSION_MACRO \"$$NUT_VERSION\"" >> _nut_version.h ; \
echo "NUT_VERSION: \"$$NUT_VERSION\""
-test -f nut_version.h || cp _nut_version.h nut_version.h