]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Added automatic generation of packages and repository tagging
authordlezcano <dlezcano>
Fri, 24 Oct 2008 22:08:25 +0000 (22:08 +0000)
committerdlezcano <dlezcano>
Fri, 24 Oct 2008 22:08:25 +0000 (22:08 +0000)
Makefile.am
configure.in

index 61b68fcf12187a9892515df7a7e09f1b2e229b61..0b34a6361fd8a7108f3342cbe93838ed55168d83 100644 (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)
index d5ee8068d053ba18e70e5822067e487a0bee0107..9ce751ac9e366d278bd02e8091f905f3517c889b 100644 (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