convert_apptemplate2vm.sh 167 B

12345678910111213
  1. #!/bin/sh
  2. SRC=$1
  3. DSTDIR=$2
  4. VMNAME=$3
  5. VMDIR=$4
  6. DST=$DSTDIR/$VMNAME-$(basename $SRC)
  7. sed -e "s/%VMNAME%/$VMNAME/" \
  8. -e "s %VMDIR% $VMDIR " \
  9. <$SRC >$DST