[32686] trunk/dports/irc/infobot/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Jan 10 23:35:35 PST 2008


Revision: 32686
          http://trac.macosforge.org/projects/macports/changeset/32686
Author:   ryandesign at macports.org
Date:     2008-01-10 23:35:33 -0800 (Thu, 10 Jan 2008)

Log Message:
-----------
infobot: don't use 'system install' when we can use xinstall, and no longer use deprecated 'cd' command

Modified Paths:
--------------
    trunk/dports/irc/infobot/Portfile

Modified: trunk/dports/irc/infobot/Portfile
===================================================================
--- trunk/dports/irc/infobot/Portfile	2008-01-11 07:25:02 UTC (rev 32685)
+++ trunk/dports/irc/infobot/Portfile	2008-01-11 07:35:33 UTC (rev 32686)
@@ -16,12 +16,11 @@
 checksums	md5 897a005182928613eadd30c267ce9c5b
 configure	{}
 build		{}
-destroot	{ system "install -o root -m 755 -d ${destroot}${prefix}/bin"
+destroot	{ xinstall -m 755 -d ${destroot}${prefix}/bin
 		  set script [open "${prefix}/bin/infobot" w 0755]
 		  puts $script "#!/bin/sh"
 		  puts $script "cd ${prefix}/share/infobot && perl infobot"
 		  close $script
-		  cd ${worksrcpath}
-		  system "install -o root -m 755 -d ${destroot}${prefix}/share/infobot"
-		  system "cp -Rp * ${destroot}${prefix}/share/infobot" }
+		  xinstall -m 755 -d ${destroot}${prefix}/share/infobot
+		  eval file copy [glob ${worksrcpath}/*] ${destroot}${prefix}/share/infobot }
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080110/7731ec94/attachment.html


More information about the macports-changes mailing list