build: Include revision information in distributions.
This commit is contained in:
parent
a09bbd9151
commit
af885e156e
3 changed files with 19 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,6 @@
|
||||||
.deps
|
.deps
|
||||||
|
.version
|
||||||
|
.version.date
|
||||||
Makefile
|
Makefile
|
||||||
Makefile.in
|
Makefile.in
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
|
|
|
@ -25,6 +25,7 @@ ACLOCAL_AMFLAGS = -I config
|
||||||
# extra files to include with distribution tarball
|
# extra files to include with distribution tarball
|
||||||
EXTRA_DIST = bootstrap.sh LICENSE README-Xen Changelog kernel \
|
EXTRA_DIST = bootstrap.sh LICENSE README-Xen Changelog kernel \
|
||||||
python-prefix.py revision.sh \
|
python-prefix.py revision.sh \
|
||||||
|
.version .version.date \
|
||||||
packaging/bsd \
|
packaging/bsd \
|
||||||
packaging/deb/compat \
|
packaging/deb/compat \
|
||||||
packaging/deb/copyright \
|
packaging/deb/copyright \
|
||||||
|
@ -70,3 +71,9 @@ core-restart:
|
||||||
daemon/sbin/core-cleanup
|
daemon/sbin/core-cleanup
|
||||||
rm -f /var/log/core-daemon.log
|
rm -f /var/log/core-daemon.log
|
||||||
/etc/init.d/core-daemon start
|
/etc/init.d/core-daemon start
|
||||||
|
|
||||||
|
.version:
|
||||||
|
echo $(CORE_VERSION) > $@
|
||||||
|
|
||||||
|
.version.date:
|
||||||
|
echo $(CORE_VERSION_DATE) > $@
|
||||||
|
|
|
@ -44,7 +44,11 @@ esac
|
||||||
|
|
||||||
_revision()
|
_revision()
|
||||||
{
|
{
|
||||||
|
if [ -r .version ]; then
|
||||||
|
cat .version
|
||||||
|
else
|
||||||
echo $1$2
|
echo $1$2
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
git_revision()
|
git_revision()
|
||||||
|
@ -124,7 +128,11 @@ svn_revision()
|
||||||
|
|
||||||
_date()
|
_date()
|
||||||
{
|
{
|
||||||
|
if [ -r .version.date ]; then
|
||||||
|
cat .version.date
|
||||||
|
else
|
||||||
date '+%Y%m%d'
|
date '+%Y%m%d'
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
git_date()
|
git_date()
|
||||||
|
|
Loading…
Reference in a new issue