[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gsrc-commit] trunk r2704: add uninstall-pkg-old and uninstall-src-old r
From: |
Brandon Invergo |
Subject: |
[Gsrc-commit] trunk r2704: add uninstall-pkg-old and uninstall-src-old recipes |
Date: |
Mon, 11 Nov 2013 09:05:28 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 2704
revision-id: address@hidden
parent: address@hidden
committer: Brandon Invergo <address@hidden>
branch nick: trunk
timestamp: Mon 2013-11-11 10:05:15 +0100
message:
add uninstall-pkg-old and uninstall-src-old recipes
modified:
ChangeLog changelog-20100709141706-qgja2j0qu34ekbcd-1
gar.mk gar.mk-20100602191336-d3df1ggfm1r56woa-6
=== modified file 'ChangeLog'
--- a/ChangeLog 2013-11-09 18:45:30 +0000
+++ b/ChangeLog 2013-11-11 09:05:15 +0000
@@ -1,3 +1,10 @@
+2013-11-11 Brandon Invergo <address@hidden>
+
+ * gar.mk (uninstall-src-old): Add recipe to clean out old source
+ directories
+ (uninstall-pkg-old): Add recipe to clean out old package
+ directories
+
2013-11-09 Brandon Invergo <address@hidden>
* gar.lib/info.mk (post-install): Move install-info code to a
=== modified file 'gar.mk'
--- a/gar.mk 2013-11-09 18:45:30 +0000
+++ b/gar.mk 2013-11-11 09:05:15 +0000
@@ -58,6 +58,8 @@
ALLFILES ?= $(DISTFILES) $(PATCHFILES) $(SIGFILES)
+OLDVERSIONS ?= $(subst $(UPSTREAMNAME)-,,$(filter-out $(DISTNAME),$(notdir
$(wildcard $(packagesdir)/$(GARNAME)-*))))
+
# For rules that do nothing, display what dependencies they
# successfully completed
DONADA = @printf "[$(OK)address@hidden(OFF)] $(MSG)Complete. Finished rules:
$(OFF)$+\n"
@@ -333,6 +335,11 @@
rm -rvf $(SRCDIR)/$(GARNAME)-$(GARVERSION)
$(MAKECOOKIE)
+uninstall-src-old:
+ for v in $(OLDVERSIONS); do \
+ $(MAKE) uninstall-src GARVERSION=$$v; \
+ done
+
# uninstall - Remove the installation.
uninstall: pre-uninstall custom-pre-uninstall sysinstall-uninstall
post-uninstall custom-post-uninstall
$(DONADA)
@@ -340,6 +347,11 @@
uninstall-pkg: sysinstall-uninstall-pkg
$(DONADA)
+uninstall-pkg-old:
+ for v in $(OLDVERSIONS); do \
+ $(MAKE) uninstall-pkg GARVERSION=$$v; \
+ done
+
# Update a package: clean out the old stuff, download a new version,
# rebuild the checksums and install it.
update:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gsrc-commit] trunk r2704: add uninstall-pkg-old and uninstall-src-old recipes,
Brandon Invergo <=