view 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
line wrap: on
line source

#!/bin/bash
## create html with links for output_dir 
## usage:  make_html.sh dataset_path dataset_extra_file_path 
defuse_out=$1
extra_files_path=$2
if [ -e $defuse_out ]
then
  echo '<html><head><title>Defuse Output</title></head><body>' > $defuse_out
  echo '<h2>Defuse Output Files</h2><ul>' >>  $defuse_out
  pushd $extra_files_path
  for f in `find -L . -maxdepth 1 -type f`;
   do fn=`basename ${f}`; echo '<li><a href="'${fn}'">'${fn}'</a></li>' >>  $defuse_out;
  done
  popd
  echo '</ul>' >> $defuse_out
  echo '</body></html>' >>  $defuse_out
fi