[Codestriker-commits] CVS update: codestriker CHANGELOG
Brought to you by:
sits
From: <si...@us...> - 2008-08-12 09:20:23
|
User: sits Date: 08/08/12 02:20:22 Modified: bin install.pl . CHANGELOG Log: * Updated install.pl so that it can be executed from any directory, not just bin. Index: install.pl =================================================================== RCS file: /cvsroot/codestriker/codestriker/bin/install.pl,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- install.pl 10 Jul 2008 10:43:55 -0000 1.19 +++ install.pl 12 Aug 2008 09:20:22 -0000 1.20 @@ -22,7 +22,19 @@ use strict; use Config; -use lib '../lib'; + +# Determine the location of the Codestriker bin directory. This will +# work even if the script was not executed in the bin directory. +my $bin_directory; +BEGIN { + use File::Spec::Functions qw(rel2abs); + use File::Basename qw(dirname); + my $path = rel2abs($0); + $bin_directory = dirname($path); +} +use lib $bin_directory . "/../lib"; + +chdir $bin_directory; require 5.008_0; Index: CHANGELOG =================================================================== RCS file: /cvsroot/codestriker/codestriker/CHANGELOG,v retrieving revision 1.258 retrieving revision 1.259 diff -u -r1.258 -r1.259 --- CHANGELOG 11 Aug 2008 03:58:11 -0000 1.258 +++ CHANGELOG 12 Aug 2008 09:20:22 -0000 1.259 @@ -7,6 +7,9 @@ of the standard commit-email.pl script which ships with Subversion. The email sent also includes an additional line, which is the URL to the auto-created topic. + +* Updated install.pl so that it can be executed from any directory, not + just bin. Version 1.9.6 |