Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.333 kb
#!/bin/sh
#
# cpsimple: recursive directory copy, then delete .svn sub dirs.
if [ $(basename "$1") = $(basename "$2") -a -d $2 ]; then
DESTDIR=$(dirname "$2")
else
DESTDIR=$2
fi
echo cp -pr $1 $DESTDIR
cp -pr $1 $DESTDIR
echo find $2 '-name .svn -prune -exec rm -fr {} \;'
find $2 -name .svn -prune -exec rm -fr {} \;
exit 0
Jump to Line
Something went wrong with that request. Please try again.