Skip to content

Commit

Permalink
fixed a small problem in my new utils/clean_listings_specfem.pl: file…
Browse files Browse the repository at this point in the history
… permissions were erased
  • Loading branch information
komatits committed Jan 22, 2015
1 parent 151942b commit 03bb77c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/clean_listings_specfem.pl
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,10 @@
chop $name;
print STDOUT "Cleaning $name ...\n";

system("iconv -f utf-8 -t ASCII//TRANSLIT $name -o _____temp08_____ ; mv _____temp08_____ $name");
# this preserves file permissions of executable files
system("cp -p $name _____temp08_____ ; iconv -f utf-8 -t ASCII//TRANSLIT _____temp08_____ -o _____temp09_____ ; cp _____temp09_____ $name");

}

system("rm -f _____temp08_____");
system("rm -f _____temp08_____ _____temp09_____");

0 comments on commit 03bb77c

Please sign in to comment.