[evolvis-commits] r18477: fix shell stuff
mirabilos at evolvis.org
mirabilos at evolvis.org
Thu Jul 12 11:13:44 CEST 2012
Author: mirabilos
Date: 2012-07-12 11:13:44 +0200 (Thu, 12 Jul 2012)
New Revision: 18477
Modified:
trunk/gforge_base/evolvisforge-5.1/src/debian/rules
Log:
fix shell stuff
Modified: trunk/gforge_base/evolvisforge-5.1/src/debian/rules
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/debian/rules 2012-07-12 09:13:39 UTC (rev 18476)
+++ trunk/gforge_base/evolvisforge-5.1/src/debian/rules 2012-07-12 09:13:44 UTC (rev 18477)
@@ -82,16 +82,24 @@
conffiles: $(PPOSTINST) $(PPRERM) $(CRONDFILES) $(DIRSFILES) $(LINKSFILES) $(INSTALLFILES) $(DOCSFILES) $(READMEFILES) $(PCRONDFILES) $(PDIRSFILES) $(PLINKSFILES) $(PINSTALLFILES) $(PDOCSFILES) $(PTRIGGERSFILES) debian/control
debian/$(PACKAGE)-plugin-%.postinst:
- export PLUGLONGNAME="`cat $(CURDIR)/plugins/$*/NAME`"; \
- [ -e $(CURDIR)/plugins/$*/debian/plugin-$*.postinst ] \
- && $(SED_REPLACE) -e 's/@PLUGSHORTNAME@/$*/g' -e "s/@PLUGLONGNAME@/$$PLUGLONGNAME/g" $(CURDIR)/plugins/$*/debian/plugin-$*.postinst > $@ \
- || $(SED_REPLACE) -e 's/@PLUGSHORTNAME@/$*/g' -e "s/@PLUGLONGNAME@/$$PLUGLONGNAME/g" $(CURDIR)/debian/dsf-in/plugin.postinst > $@
+ PLUGLONGNAME="$$(cat '$(CURDIR)/plugins/$*/NAME')"; \
+ test -n "$$PLUGLONGNAME" || exit 1; \
+ srcf='$(CURDIR)/plugins/$*/debian/plugin-$*.postinst'; \
+ test -e "$$srcf" || srcf='$(CURDIR)/debian/dsf-in/plugin.postinst'; \
+ $(SED_REPLACE) \
+ -e 's/@PLUGSHORTNAME@/$*/g' \
+ -e "s/@PLUGLONGNAME@/$$PLUGLONGNAME/g" \
+ "$$srcf" >$@ || (rm -f $@; exit 1)
debian/$(PACKAGE)-plugin-%.prerm:
- export PLUGLONGNAME="`cat $(CURDIR)/plugins/$*/NAME`"; \
- [ -e $(CURDIR)/plugins/$*/debian/plugin-$*.prerm ] \
- && $(SED_REPLACE) -e 's/@PLUGSHORTNAME@/$*/g' -e "s/@PLUGLONGNAME@/$$PLUGLONGNAME/g" $(CURDIR)/plugins/$*/debian/plugin-$*.prerm > $@ \
- || $(SED_REPLACE) -e 's/@PLUGSHORTNAME@/$*/g' -e "s/@PLUGLONGNAME@/$$PLUGLONGNAME/g" $(CURDIR)/debian/dsf-in/plugin.prerm > $@
+ PLUGLONGNAME="$$(cat '$(CURDIR)/plugins/$*/NAME')"; \
+ test -n "$$PLUGLONGNAME" || exit 1; \
+ srcf='$(CURDIR)/plugins/$*/debian/plugin-$*.prerm'; \
+ test -e "$$srcf" || srcf='$(CURDIR)/debian/dsf-in/plugin.prerm'; \
+ $(SED_REPLACE) \
+ -e 's/@PLUGSHORTNAME@/$*/g' \
+ -e "s/@PLUGLONGNAME@/$$PLUGLONGNAME/g" \
+ "$$srcf" >$@ || (rm -f $@; exit 1)
debian/$(PACKAGE)-plugin-%.cron.d:
(cat $(CURDIR)/packaging/cron.d/00phpcron ; $(SED_REPLACE) -e 's/\$$FFUSER/$(OLDPACKAGE)/g' $(CURDIR)/plugins/$*/packaging/cron.d/plugin-$*) | $(SED_REPLACE) > $@
@@ -104,13 +112,13 @@
$(SED_REPLACE) $(CURDIR)/plugins/$*/packaging/dirs/plugin-$* > $@
debian/$(OLDPACKAGE)-%.dirs:
- $(SED_REPLACE) $(CURDIR)/packaging/dirs/$* > $@
+ $(SED_REPLACE) $(CURDIR)/packaging/dirs/$* > $@
debian/$(PACKAGE)-plugin-%.links:
$(SED_REPLACE) $(CURDIR)/plugins/$*/packaging/links/plugin-$* > $@
debian/$(OLDPACKAGE)-%.links:
- $(SED_REPLACE) $(CURDIR)/packaging/links/$* > $@
+ $(SED_REPLACE) $(CURDIR)/packaging/links/$* > $@
debian/$(PACKAGE)-plugin-%.install:
$(SED_REPLACE) $(CURDIR)/plugins/$*/packaging/install/plugin-$* > $@
@@ -119,7 +127,7 @@
$(SED_REPLACE) $(CURDIR)/plugins/$*/debian/plugin-$*.triggers > $@
debian/$(OLDPACKAGE)-%.install:
- $(SED_REPLACE) $(CURDIR)/packaging/install/$* > $@
+ $(SED_REPLACE) $(CURDIR)/packaging/install/$* > $@
debian/$(PACKAGE)-plugin-%.docs:
$(SED_REPLACE) $(CURDIR)/plugins/$*/packaging/docs/plugin-$* > $@
More information about the evolvis-commits
mailing list