[Bps-public-commit] r10066 - bpsbuilder/BPB/lib/BPB
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Mon Dec 24 14:15:18 EST 2007
Author: sunnavy
Date: Mon Dec 24 14:15:17 2007
New Revision: 10066
Modified:
bpsbuilder/BPB/lib/BPB/Backend.pm
Log:
automatically add DYLD_LIBRARY_PATH, and we should create etc dir if it does not exist
Modified: bpsbuilder/BPB/lib/BPB/Backend.pm
==============================================================================
--- bpsbuilder/BPB/lib/BPB/Backend.pm (original)
+++ bpsbuilder/BPB/lib/BPB/Backend.pm Mon Dec 24 14:15:17 2007
@@ -72,9 +72,13 @@
}
$args{perl} ||= 'perl';
+$ENV{DYLD_LIBRARY_PATH} = File::Spec->catfile( $args{'install-base'}, 'lib' );
mkdir $args{'install-base'} unless -e $args{'install-base'};
+mkdir File::Spec->catfile( $args{'install-base'}, 'etc' )
+ unless -e File::Spec->catfile( $args{'install-base'}, 'etc' );
+
copy(
File::Spec->catfile( 'etc', 'bpb-script-wrapper' ),
File::Spec->catfile( $args{'install-base'}, 'etc', 'bpb-script-wrapper' )
More information about the Bps-public-commit
mailing list