[Bioperl-l] Symlink on install

Brian Osborne brian_osborne at cognia.com
Sat Mar 19 10:29:33 EST 2005


Ben,

Yes, maintenance/ sounds reasonable. What a surprise!

;-)

Brian O.


-----Original Message-----
From: bioperl-l-bounces at portal.open-bio.org
[mailto:bioperl-l-bounces at portal.open-bio.org]On Behalf Of Ben Faga
Sent: Thursday, March 17, 2005 1:42 PM
To: bioperl-l at bioperl.org
Subject: [Bioperl-l] Symlink on install


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

_______________________________________________
Bioperl-l mailing list
Bioperl-l at portal.open-bio.org
http://portal.open-bio.org/mailman/listinfo/bioperl-l





More information about the Bioperl-l mailing list