Imported Upstream version 2.6.3
This commit is contained in:
parent
45043b58d0
commit
fad6ced6f6
255 changed files with 11081 additions and 4629 deletions
|
|
@ -8,10 +8,14 @@ CLEANFILES = nut_version.h
|
|||
# magic to include SVN revision number in NUT version string
|
||||
|
||||
nut_version.h: FORCE
|
||||
@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"; \
|
||||
@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 ; \
|
||||
echo '/* Autogenerated file. Do not change. */' > _nut_version.h ; \
|
||||
echo '/* This file was generated by "make". */' >> _nut_version.h ; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue