summaryrefslogtreecommitdiff
path: root/dists/win32/shebang-vanilla.pl
diff options
context:
space:
mode:
Diffstat (limited to 'dists/win32/shebang-vanilla.pl')
-rw-r--r--dists/win32/shebang-vanilla.pl24
1 files changed, 24 insertions, 0 deletions
diff --git a/dists/win32/shebang-vanilla.pl b/dists/win32/shebang-vanilla.pl
new file mode 100644
index 00000000..bcc69498
--- /dev/null
+++ b/dists/win32/shebang-vanilla.pl
@@ -0,0 +1,24 @@
+#!c:\vanilla-perl\perl\bin
+# Use this script to convert the beginnings of files to the path to ActivePerl
+# if you are installing with Vanilla 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:\\vanilla-perl\\perl\\bin\n";
+ print FH @file;
+
+ close(FH);
+
+ }