summaryrefslogtreecommitdiff
path: root/dists
diff options
context:
space:
mode:
Diffstat (limited to 'dists')
-rw-r--r--dists/win32/shebang-strawberry.pl25
1 files changed, 25 insertions, 0 deletions
diff --git a/dists/win32/shebang-strawberry.pl b/dists/win32/shebang-strawberry.pl
new file mode 100644
index 00000000..9c30b593
--- /dev/null
+++ b/dists/win32/shebang-strawberry.pl
@@ -0,0 +1,25 @@
+#!c:\strawberry-perl\perl\bin\perl
+# Use this script to convert the beginnings of files to the path to Strawberry Perl
+# if you are installing with Strawberry Perl.
+
+opendir DIR, ".";
+@perlfiles = grep /\.pl/, readdir DIR;
+closedir DIR;
+
+foreach $file (@perlfiles) {
+ open FH, '+<', "$file";
+
+ @file = <FH>;
+
+ seek( FH, 0, 0 );
+ truncate( FH, 0 );
+
+ $line = shift @file;
+
+ print FH "#!c:\\strawberry-perl\\perl\\bin\\perl\n";
+ print FH @file;
+
+ close(FH);
+
+}
+