Skip to content

Instantly share code, notes, and snippets.

@jamesfalkner
Created November 15, 2013 20:35
Show Gist options
  • Save jamesfalkner/7491124 to your computer and use it in GitHub Desktop.
Save jamesfalkner/7491124 to your computer and use it in GitHub Desktop.
#!/bin/sh
SRCFILE="$1"
cd TEMPLATES
for i in *.vm ; do
NN=`echo $i|sed 's/\.vm//'`
echo "put $SRCFILE $NN" | /opt/local/bin/cadaver http://localhost:8080/webdav/wcm-apps/journal/Templates
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment