summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mac/Templatify.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mac/Templatify.pl b/src/mac/Templatify.pl
index 3a76f4ef3..0749fadeb 100644
--- a/src/mac/Templatify.pl
+++ b/src/mac/Templatify.pl
@@ -1,3 +1,5 @@
#!/usr/local/bin/perl -w
-while (<STDIN>) { last if /^# TEMPLATE BEGINS HERE$/ }
-do { y#\245:\304\266#\*/:\\#; print } while (<STDIN>);
+$_=<STDIN>;
+$_=<STDIN> while $_!~/^#\s*TEMPLATE BEGINS HERE\s*$/;
+$_=<STDIN> while /^# *TEMPLATE BEGINS HERE\s*$/;
+while (<STDIN>) { y#\245:\304\266#\*/:\\#; print; }