annotate make_html.sh @ 1:e0a835a2f74a draft default tip

planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 1a82c0609363fe0541e6dbdd46308a67f30ca9e1-dirty
author jjohnson
date Mon, 20 May 2019 15:30:06 -0400
parents 63f23d5db27c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
1 #!/bin/bash
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
2 ## create html with links for output_dir
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
3 ## usage: make_html.sh dataset_path dataset_extra_file_path
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
4 defuse_out=$1
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
5 extra_files_path=$2
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
6 if [ -e $defuse_out ]
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
7 then
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
8 echo '<html><head><title>Defuse Output</title></head><body>' > $defuse_out
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
9 echo '<h2>Defuse Output Files</h2><ul>' >> $defuse_out
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
10 pushd $extra_files_path
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
11 for f in `find -L . -maxdepth 1 -type f`;
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
12 do fn=`basename ${f}`; echo '<li><a href="'${fn}'">'${fn}'</a></li>' >> $defuse_out;
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
13 done
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
14 popd
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
15 echo '</ul>' >> $defuse_out
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
16 echo '</body></html>' >> $defuse_out
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
17 fi
63f23d5db27c planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/defuse commit 2c2fd38cb761ec57bac7a0bd376e6aa2b88265d0-dirty
jjohnson
parents:
diff changeset
18