[csw-devel] SF.net SVN: gar:[9506] csw/mgar/pkg/tkcvs/trunk/Makefile

opk at users.sourceforge.net opk at users.sourceforge.net
Thu Apr 1 14:24:31 CEST 2010


Revision: 9506
          http://gar.svn.sourceforge.net/gar/?rev=9506&view=rev
Author:   opk
Date:     2010-04-01 12:24:31 +0000 (Thu, 01 Apr 2010)

Log Message:
-----------
fix script directly in the install-custom target as suggested by Dago

Modified Paths:
--------------
    csw/mgar/pkg/tkcvs/trunk/Makefile

Modified: csw/mgar/pkg/tkcvs/trunk/Makefile
===================================================================
--- csw/mgar/pkg/tkcvs/trunk/Makefile	2010-04-01 10:13:22 UTC (rev 9505)
+++ csw/mgar/pkg/tkcvs/trunk/Makefile	2010-04-01 12:24:31 UTC (rev 9506)
@@ -29,13 +29,7 @@
 LICENSE = COPYING
 ARCHALL = 1
 RUNTIME_DEP_PKGS = CSWtcl CSWtk CSWtkdiff
-POST_INSTALL_TARGETS := fixscript
 
-# Script needs to run wish from /opt/csw
-fixscript:
-	@echo " ==> Fixing wish path in tkcvs script"
-	perl -i -plne "s{^exec wish}{exec ${bindir}/wish}g" $(DESTDIR)$(prefix)/bin/tkcvs
-
 include gar/category.mk
 
 TCL_FILES = $(filter-out %/tkcvs.tcl,$(wildcard $(WORKSRC)/tkcvs/*.tcl))
@@ -44,6 +38,7 @@
 install-custom:
 	@echo " ==> Installing $(GARNAME)"
 	@ginstall -D $(WORKSRC)/tkcvs/tkcvs.tcl $(DESTDIR)$(prefix)/bin/tkcvs
+	perl -i -plne "s{^exec wish}{exec ${bindir}/wish}g" $(DESTDIR)$(prefix)/bin/tkcvs
 	@ginstall -D $(WORKSRC)/tkcvs/tkcvs.1 $(DESTDIR)$(prefix)/share/man/man1/tkcvs.1
 	@ginstall -d $(DESTDIR)$(prefix)/lib/tkcvs/bitmaps
 	@ginstall -m 644 $(TCL_FILES) $(WORKSRC)/tkcvs/tclIndex $(DESTDIR)$(prefix)/lib/tkcvs


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list