#! /bin/sh wsdir=$1 shift if [ -z "$wsdir" ] ; then echo usage $0 webstartdir exit 1 fi if [ ! -e $wsdir ] ; then echo $wsdir does not exist exit 1 fi cd $wsdir rm -rf orig-jnlp mkdir orig-jnlp for i in *.jnlp ; do mv $i orig-jnlp sed -e 's///g' -e 's/<\/security>//g' -e 's///g' orig/$i > $i done