From 64b4b39c5985396f148e5dc74a28b99e946b50e0 Mon Sep 17 00:00:00 2001
From: Amy Tang <at6@sanger.ac.uk>
Date: Fri, 30 Jan 2009 11:43:52 +0000
Subject: [PATCH] Reverted back to using /usr/local/ensembl/bin/perl as in
 version 1.2 to be in line with other Ensembl code.

Synopsis and STEDRR msg updated to alert users to include the -update option
when writing analysis_descriptions to the DB.
---
 .../load_analysis_descriptions.pl                     | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/misc-scripts/analysis_description/load_analysis_descriptions.pl b/misc-scripts/analysis_description/load_analysis_descriptions.pl
index 6c33454b99..9b7cf24062 100644
--- a/misc-scripts/analysis_description/load_analysis_descriptions.pl
+++ b/misc-scripts/analysis_description/load_analysis_descriptions.pl
@@ -1,5 +1,4 @@
-#!/opt/local/bin/perl -w
-###!/usr/local/ensembl/bin/perl -w
+#!/usr/local/ensembl/bin/perl -w
 
 # POD documentation - main docs before the code
 
@@ -42,7 +41,7 @@
 =head1 EXAMPLES
 
  perl load_analysis_descriptions.pl -dbhost my_host -dbuser user -dbpass ***** 
- -dbname my_db -file analysis.descriptions -file myanalysis.descriptions
+ -dbname my_db -file analysis.descriptions -file myanalysis.descriptions -update
 
 =cut
 
@@ -125,7 +124,7 @@ foreach my $file( @files ){
     $reference{lc($logic_name)} = {
       nr            => $nr,
       description   => $description   || '',
-      display_lable => $display_label || '', 
+      display_label => $display_label || '',
       displayable   => $displayable   || '', 
       web_data      => $web_data      || '',
     };
@@ -157,7 +156,9 @@ if ( scalar(keys %hash)==0) {
 	if ($update) {
 		print STDERR "\nAll analysis descriptions have been updated, every analysis has a description now\n";
 	} else {
-		print STDERR "\nAll analysis descriptions can be updated, every analysis has a description in the file\n";
+		print STDERR "\nEvery analysis has a description in the file, all analysis descriptions can be updated.\n".
+                                "To write analysis descriptions to the analysis_description table in your DB,\n".
+                                "please run this script including the -update option on the commandline\n";
 	}
 } else {
     foreach my $ln (keys %hash) {
-- 
GitLab