Added automatic generation of packages and repository tagging

This commit is contained in:
dlezcano 2008-10-24 22:08:25 +00:00
parent 94253b66e4
commit 65c46aeff2
2 changed files with 17 additions and 0 deletions

View File

@ -4,5 +4,14 @@ SUBDIRS = src test etc
DIST_SUBDIRS = config src test etc
EXTRA_DIST = lxc.spec
ChangeLog::
@echo "Generating ChangeLog"
@cvs2cl
rpm: dist
rpmbuild --clean -ta ${distdir}.tar.gz
release: rpm
@sh ./release.sh $(PACKAGE_NAME) \
$(LXC_MAJOR_VERSION) \
$(LXC_MINOR_VERSION) \
$(LXC_MICRO_VERSION)

View File

@ -24,6 +24,14 @@ if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wall"
fi
LXC_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
LXC_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
LXC_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
AC_SUBST(LXC_MAJOR_VERSION)
AC_SUBST(LXC_MINOR_VERSION)
AC_SUBST(LXC_MICRO_VERSION)
AC_CONFIG_FILES([
Makefile
lxc.spec