comparison make_html.sh @ 0:63f23d5db27c draft

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