Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cbe02223e1
Fetching contributors…

Cannot retrieve contributors at this time

executable file 32 lines (25 sloc) 0.514 kb
#!/bin/sh
cleanup() {
rm "$svn_out"
rm "$svn_err"
}
svn_out=$(mktemp)
svn_err=$(mktemp)
svn status --no-ignore 2> "$svn_err" | grep '^[?I]' | cut -c '9-' > "$svn_out"
if [ -s "$svn_err" ]; then
echo "svn error:"
cat "$svn_err"
cleanup
exit 1
fi
if [ -s "$svn_out" ]; then
if [ -z "$1" ]; then
echo "Would remove (use -f to force):"
cat "$svn_out"
else
echo "Removing:"
cat "$svn_out"
xargs -d '\n' rm -rf < "$svn_out"
fi
fi
cleanup
Jump to Line
Something went wrong with that request. Please try again.