mac term packaging code (trunk only)

: Modified Files:
: 	sys/unix/hints/macosx.sh sys/unix/hints/macosx10.5
: 	win/macosx/NetHackRecover.applescript win/macosx/recover.pl
: Added Files:
: 	win/macosx/NetHackGuidebook.applescript
: 	win/macosx/NetHackTerm.applescript
This commit is contained in:
keni
2011-10-17 01:29:20 +00:00
parent f48de2f336
commit 2402f43776
6 changed files with 188 additions and 22 deletions
+5 -2
View File
@@ -13,7 +13,7 @@ if(! -d $playground){
print "Cannot find playground $playground.";
exit 0
}
if(! -f "$playground/castle.lev"){
if(! -f "$playground/castle.lev" && ! -f "$playground/nhdat"){
print "Failed to find playground $playground.";
exit 0
}
@@ -38,9 +38,12 @@ if($try_perm){
}
# run recover, but only if there is something that looks promising
$recover = "./recover";
$recover = "/usr/games/bin/recover" unless(-e $recover);
$uid = $<;
foreach ( <$uid*.0> ){
system ("./recover -d . $_");
system ("$recover -d . $_");
}
print "Done.\n";