6 my $build = Module
::Build
->current;
8 my %symlink_scripts = ('bp_bulk_load_gff.pl' => 'bp_pg_bulk_load_gff.pl');
10 #my $blib_dir = File::Spec->catdir($build->blib, 'script');
11 # using blib prior to installation, post build, always 'works', but the
12 # installation process installs the symlink as the actual file, so we may as
13 # well have just done a copy
15 my $install_dir = $build->install_destination('script');
16 $build->log_info("Will try to install symlinks to $install_dir\n");
17 my $orig_dir = $build->cwd;
20 while (my ($source, $destination) = each %symlink_scripts) {
21 eval { symlink($source, $destination) };
22 $build->log_warn("Cannot create symbolic link named $destination on your system for $source in $install_dir\n") if $@
;
33 symlink_script.pl - install script to create symbolic links
42 Used during "./Build install". Only works if the script installation directory
43 used during "perl Build.pl" matches that used for the actual installation during
44 "./Build install". So if you install to a special place, do
46 perl Build.pl --install_base /home/me
52 ./Build install --install_base /home/me
54 This script will create a symlink to a script in that same directory. It was
55 written to create a symlink with the name 'bp_pg_bulk_load_gff.pl' that targeted
56 'bp_bulk_load_gff.pl' but can be extended by adding files to the
57 %symlink_scripts hash.
59 Perl function 'symlink' is used to keep the script from crashing on systems
60 that don't allow symbolic linking.
70 User feedback is an integral part of the evolution of this and other
71 Bioperl modules. Send your comments and suggestions preferably to
72 the Bioperl mailing list. Your participation is much appreciated.
74 bioperl-l@bioperl.org - General discussion
75 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
79 Report bugs to the Bioperl bug tracking system to help us keep track
80 of the bugs and their resolution. Bug reports can be submitted via the
83 http://bugzilla.open-bio.org/
85 =head1 AUTHOR - Sendu Bala