From 8132f9e4c6e084ba0bc7b57e6a25a93b0c27b972 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sun, 6 May 2007 21:40:36 +0000 Subject: Adding shebang script for Strawberry Perl git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1137 4979c152-3d1c-0410-bac9-87ea11338e46 --- dists/win32/shebang-strawberry.pl | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 dists/win32/shebang-strawberry.pl (limited to 'dists') 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 = ; + + seek( FH, 0, 0 ); + truncate( FH, 0 ); + + $line = shift @file; + + print FH "#!c:\\strawberry-perl\\perl\\bin\\perl\n"; + print FH @file; + + close(FH); + +} + -- cgit v1.2.3