summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-03-19 17:38:58 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2012-03-19 17:38:58 +0100
commit3d6bfb6297ffce85c432f6dfb2a9c4c54d0f2a71 (patch)
tree6c60ad67343ec7baf4c1551dcd6ee0f654c47643 /Makefile
parent94ae8b1ccd08b7d0b2408db5b2054dee53413166 (diff)
downloadnetctl-3d6bfb6297ffce85c432f6dfb2a9c4c54d0f2a71.tar.gz
netctl-3d6bfb6297ffce85c432f6dfb2a9c4c54d0f2a71.tar.xz
Release process changes
This commit does not change any installed code. - The tarball now includes pre-built documentation, removing the build dependency on asciidoc from the PKGBUILD. - The tarball is now xz compressed. - News is updated.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 17 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 813e24d..113b374 100644
--- a/Makefile
+++ b/Makefile
@@ -60,25 +60,26 @@ install-docs: docs
docs:
$(MAKE) -C $@
-tarball: netcfg-$(VERSION).tar.gz
-netcfg-$(VERSION).tar.gz:
- -rm -rf netcfg-$(VERSION)
- mkdir -p netcfg-$(VERSION)
- cp -r docs config rc.d src scripts src-wireless systemd contrib Makefile LICENSE README netcfg-$(VERSION)
- sed -i "s/NETCFG_VER=.*/NETCFG_VER=$(VERSION)/" netcfg-$(VERSION)/scripts/netcfg
- tar -zcvf netcfg-$(VERSION).tar.gz netcfg-$(VERSION)
- rm -rf netcfg-$(VERSION)
+tarball: netcfg-$(VERSION).tar.xz
+netcfg-$(VERSION).tar.xz: | docs
+ cp scripts/netcfg{,.orig}
+ sed -i "s/NETCFG_VER=.*/NETCFG_VER=$(VERSION)/" scripts/netcfg
+ git stash save -q
+ git archive -o netcfg-$(VERSION).tar --prefix=netcfg-$(VERSION)/ stash
+ git stash pop -q
+ mv scripts/netcfg{.orig,}
+ tar --exclude-vcs --transform "s%^%netcfg-$(VERSION)/%" -uf netcfg-$(VERSION).tar docs/
+ xz netcfg-$(VERSION).tar
-pkgbuild: netcfg-$(VERSION).tar.gz
- sed -e "s/%pkgver%/$(VERSION)/" -e "s/%md5sum%/$(shell md5sum netcfg-$(VERSION).tar.gz | cut -d ' ' -f 1)/" contrib/PKGBUILD > PKGBUILD
+pkgbuild: PKGBUILD
+PKGBUILD: netcfg-$(VERSION).tar.xz
+ sed -e "s/%pkgver%/$(VERSION)/" -e "s/%md5sum%/$(shell md5sum netcfg-$(VERSION).tar.xz | cut -d ' ' -f 1)/" contrib/PKGBUILD > PKGBUILD
-upload: netcfg-$(VERSION).tar.gz
- md5sum netcfg-$(VERSION).tar.gz > MD5SUMS.$(VERSION)
- scp netcfg-$(VERSION).tar.gz MD5SUMS.$(VERSION) archlinux.org:/srv/ftp/other/netcfg/
+upload: netcfg-$(VERSION).tar.xz
+ md5sum netcfg-$(VERSION).tar.xz > MD5SUMS.$(VERSION)
+ scp netcfg-$(VERSION).tar.xz MD5SUMS.$(VERSION) archlinux.org:/srv/ftp/other/netcfg/
clean:
$(MAKE) -C docs clean
- -@rm -vrf netcfg-$(VERSION) 2>/dev/null
- -@rm -vrf pkg 2>/dev/null
- -@rm -vf PKGBUILD *.gz MD5SUMS.* 2>/dev/null
+ -@rm -vf PKGBUILD *.xz MD5SUMS.* 2>/dev/null