[Bioperl-l] Symlink on install
Ben Faga
faga at cshl.org
Thu Mar 17 13:42:19 EST 2005
Hello everyone,
I've replaced the bp_bulk_load_gff.pl with a script that takes the place
of both itself (mysql version) and bp_pg_bulk_load_gff.pl (postgres
version).
Upon install of bioperl, I want to create a symbolic link from postgres
version to bp_bulk_load_gff.pl so that this change will be transparent
to people who have been using the postgres version.
I have a working solution but I wouldn't mind hearing suggestions and
critiques.
The way that it works is on make, an external script symlink_scripts.pl
gets created with all the necessary path info. In the postamble of
Makefile.PL, I inserted a line to call the symlink_scripts.pl file.
Then on install, symlink_scripts.pl is run and creates the symbolic
link. I used the Perl symlink function to create the link. On systems
where symlink doesn't work, it catches the error and prints a note to
the user. That is untested though since I have only tested it on a
fedora box.
If all of this sounds good, I have a question about where I should place
the symlink_scripts.PLS file. It has been suggested that I might put it
in the maintenance directory.
Any thoughts.
Ben
More information about the Bioperl-l
mailing list