Commit 65c46aef by dlezcano

Added automatic generation of packages and repository tagging

parent 94253b66
...@@ -4,5 +4,14 @@ SUBDIRS = src test etc ...@@ -4,5 +4,14 @@ SUBDIRS = src test etc
DIST_SUBDIRS = config src test etc DIST_SUBDIRS = config src test etc
EXTRA_DIST = lxc.spec EXTRA_DIST = lxc.spec
ChangeLog::
@echo "Generating ChangeLog"
@cvs2cl
rpm: dist rpm: dist
rpmbuild --clean -ta ${distdir}.tar.gz rpmbuild --clean -ta ${distdir}.tar.gz
release: rpm
@sh ./release.sh $(PACKAGE_NAME) \
$(LXC_MAJOR_VERSION) \
$(LXC_MINOR_VERSION) \
$(LXC_MICRO_VERSION)
...@@ -24,6 +24,14 @@ if test "x$GCC" = "xyes"; then ...@@ -24,6 +24,14 @@ if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wall" CFLAGS="$CFLAGS -Wall"
fi 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([ AC_CONFIG_FILES([
Makefile Makefile
lxc.spec lxc.spec
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment