From: Ben Soares Date: Fri, 17 Jan 2020 17:09:52 +0000 (+0000) Subject: JAL-3447 Minor improvement on file association creation X-Git-Tag: Develop-2_11_2_0-d20201215~80^2~27 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=739d51a0ee7f834923715bab90fa13b2263749e9;p=jalview.git JAL-3447 Minor improvement on file association creation --- diff --git a/utils/install4j/auto_file_associations-i4j8.pl b/utils/install4j/auto_file_associations-i4j8.pl index 9b26f22..f281469 100755 --- a/utils/install4j/auto_file_associations-i4j8.pl +++ b/utils/install4j/auto_file_associations-i4j8.pl @@ -154,6 +154,7 @@ for my $shortname (@ordered) { my $xshortname = xml_escape($shortname); my $xiconfile = xml_escape($iconfile); my $xrole = xml_escape($role); + my $xROLE = xml_escape(uc($role)); my $xprimarystring = xml_escape($primarystring); my $macentry = $mactemplate; @@ -181,6 +182,7 @@ for my $shortname (@ordered) { $i4jentry =~ s/\$\$MIMETYPE\$\$/$xmimetype/g; $i4jentry =~ s/\$\$ICONFILE\$\$/$xiconfile/g; $i4jentry =~ s/\$\$PRIMARY\$\$/$xprimarystring/g; + $i4jentry =~ s/\$\$MACASSOCIATIONROLE\$\$/$xROLE/g; my $ext = join(",",sort(@extensions)); my $xdisplayext = xml_escape(join(", ", map(".$_",sort(@extensions)))); diff --git a/utils/install4j/file_associations_auto-install4j8.xml b/utils/install4j/file_associations_auto-install4j8.xml index c9f5dc6..b14d32a 100644 --- a/utils/install4j/file_associations_auto-install4j8.xml +++ b/utils/install4j/file_associations_auto-install4j8.xml @@ -19,15 +19,14 @@ Jalview File jvp 737 - Jalview-File.icns - + @@ -65,15 +64,14 @@ Jalview Launch File jvl 737 - Jalview-Launch.icns - + @@ -111,15 +109,14 @@ CIF File cif 737 - Jalview-File.icns - - + + @@ -157,15 +154,14 @@ mmCIF File mcif,mmcif 737 - Jalview-File.icns - - + + @@ -203,15 +199,14 @@ PDB File ent,pdb 737 - Jalview-File.icns - - + + @@ -249,15 +244,14 @@ AMSA File amsa 737 - Jalview-File.icns - + @@ -295,15 +289,14 @@ Jalview Annotations File annotations,jvannotations 737 - Jalview-File.icns - + @@ -341,15 +334,14 @@ BioJSON File biojson 737 - Jalview-File.icns - + @@ -387,15 +379,14 @@ BLC File blc 737 - Jalview-File.icns - + @@ -433,15 +424,14 @@ Clustal File aln 737 - Jalview-File.icns - + @@ -479,15 +469,14 @@ Fasta File fa,fasta 737 - Jalview-File.icns - + @@ -525,15 +514,14 @@ Jalview Features File features,jvfeatures 737 - Jalview-File.icns - + @@ -571,15 +559,14 @@ Generic Features Format v2 File gff2 737 - Jalview-File.icns - + @@ -617,15 +604,14 @@ Generic Features Format v3 File gff3 737 - Jalview-File.icns - + @@ -663,15 +649,14 @@ JnetFile File concise,jnet 737 - Jalview-File.icns - + @@ -709,15 +694,14 @@ MSF File msf 737 - Jalview-File.icns - + @@ -755,15 +739,14 @@ PFAM File pfam 737 - Jalview-File.icns - + @@ -801,15 +784,14 @@ PHYLIP File phy 737 - Jalview-File.icns - + @@ -847,15 +829,14 @@ PileUp File pileup 737 - Jalview-File.icns - + @@ -893,15 +874,14 @@ PIR File pir 737 - Jalview-File.icns - + @@ -939,15 +919,14 @@ RNAML File rnaml 737 - Jalview-File.icns - + @@ -985,15 +964,14 @@ Substitution Matrix File mat 737 - Jalview-File.icns - + @@ -1031,15 +1009,14 @@ Stockholm File stk,sto 737 - Jalview-File.icns - + diff --git a/utils/install4j/file_associations_template-install4j8.xml b/utils/install4j/file_associations_template-install4j8.xml index ac0393a..5a311f1 100644 --- a/utils/install4j/file_associations_template-install4j8.xml +++ b/utils/install4j/file_associations_template-install4j8.xml @@ -19,15 +19,14 @@ $$NAME$$ File $$EXTENSION$$ 737 - $$ICONFILE$$.icns - - + +