projects
/
APKPM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2331ba2
)
chdir into script directory to use relative paths
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 5 Apr 2011 12:25:11 +0000
(14:25 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 5 Apr 2011 12:25:11 +0000
(14:25 +0200)
gearman_driver.pl
patch
|
blob
|
history
diff --git
a/gearman_driver.pl
b/gearman_driver.pl
index
492ea6a
..
494e10a
100755
(executable)
--- a/
gearman_driver.pl
+++ b/
gearman_driver.pl
@@
-4,6
+4,9
@@
use warnings;
use Gearman::Driver;
use lib 'lib';
+my $dir = $0;
+$dir =~ s{/[^/]+$}{};
+chdir $dir || die "can't chdir into $dir";
$SIG{__WARN__} = sub { print STDERR @_ if $ENV{DEBUG} };