diff options
author | Olav Vitters <olav@vitters.nl> | 2020-08-04 11:48:45 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2020-08-04 11:48:45 +0200 |
commit | 73ecc3e2012ac3030d0682d093875fe5a5b2e521 (patch) | |
tree | 67996fdb8e945dbea683c91a16d91b27844f0ef2 | |
parent | f3a336b0f2e0fb24fd52008068dea26679b7fd01 (diff) | |
download | initscripts-73ecc3e2012ac3030d0682d093875fe5a5b2e521.tar initscripts-73ecc3e2012ac3030d0682d093875fe5a5b2e521.tar.gz initscripts-73ecc3e2012ac3030d0682d093875fe5a5b2e521.tar.bz2 initscripts-73ecc3e2012ac3030d0682d093875fe5a5b2e521.tar.xz initscripts-73ecc3e2012ac3030d0682d093875fe5a5b2e521.zip |
Makefile: add a mageiadist command to create a tarball and a patch for usage in Mageia specfile
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -126,7 +126,7 @@ clean-mageia: # Remove the files we've added @for i in $(Mageia_FILES);do rm -f $$i;done # Try to remove any empty directories caused by the files we've removed - @for i in $(Mageia_SUBDIRS);do [ -d "$$1" ] && [ ! -h "$$1" ] && rmdir "$$1" 2> /dev/null;done + @for i in $(Mageia_SUBDIRS);do [ -d "$$1" ] && [ ! -h "$$1" ] && rmdir "$$1" 2> /dev/null || :;done tag: @git tag -a -f -m "$(VERSION) release" $(VERSION) @@ -148,3 +148,14 @@ archive: clean @gzip -f initscripts-$(VERSION).tar @rm -rf initscripts-$(VERSION) @echo "The archive is at initscripts-$(VERSION).tar.gz" + + +mageiadist: clean + @git archive --format=tar --prefix=initscripts-$(VERSION)/ HEAD ':po-mageia' ':man-mageia' > initscripts-$(VERSION)-mageia.tar + @mkdir -p initscripts-$(VERSION)/ + @tar --append -f initscripts-$(VERSION)-mageia.tar initscripts-$(VERSION) + @gzip -f initscripts-$(VERSION)-mageia.tar + @rm -rf initscripts-$(VERSION) + @echo "The Mageia archive is at initscripts-$(VERSION)-mageia.tar.gz" + @git diff 10.04...distro/mga ':!po-mageia' ':!man-mageia' > initscripts-$(VERSION)-mageia.patch + @echo "The Mageia patch is at initscripts-$(VERSION)-mageia.patch" |