[57891] users/ryandesign/minivmac/Portfile
ryandesign at macports.org
ryandesign at macports.org
Fri Sep 18 04:54:47 PDT 2009
Revision: 57891
http://trac.macports.org/changeset/57891
Author: ryandesign at macports.org
Date: 2009-09-18 04:54:41 -0700 (Fri, 18 Sep 2009)
Log Message:
-----------
minivmac: ensure the variation name is composed of valid characters
Modified Paths:
--------------
users/ryandesign/minivmac/Portfile
Modified: users/ryandesign/minivmac/Portfile
===================================================================
--- users/ryandesign/minivmac/Portfile 2009-09-18 10:15:12 UTC (rev 57890)
+++ users/ryandesign/minivmac/Portfile 2009-09-18 11:54:41 UTC (rev 57891)
@@ -170,7 +170,7 @@
${my_base_options} \
-t ${my_target} \
${my_variation_options} \
- -n ${version}_${revision}-[string tolower ${my_machine}]-${my_target}
+ -n ${version}_${revision}-[strsed [string tolower ${my_machine}] {g/[^a-z0-9_-]//}]-${my_target}
incr i
}
@@ -229,7 +229,7 @@
# Install the programs.
xinstall -d ${destroot}${my_appdir}
foreach {my_machine my_variation_options} ${my_variations} {
- set my_variation_dir ${version}_${revision}-[string tolower ${my_machine}]-${my_target}
+ set my_variation_dir ${version}_${revision}-[strsed [string tolower ${my_machine}] {g/[^a-z0-9_-]//}]-${my_target}
file copy ${build.dir}/${my_variation_dir}/minivmac.app \
"${destroot}${my_appdir}/Mini vMac ${my_machine}.app"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090918/770e00ad/attachment.html>
More information about the macports-changes
mailing list