All pastes #1808738 Raw Edit

Automate SVN deleting files miss

public shellscript v1 · immutable
#1808738 ·published 2010-02-24 23:50 UTC
rendered paste body
#!/bin/bash###################################################################### Delete missing files from a Subversion working directory.# Obvi, use with caution.## Sed command may need to be tweaked for your environment.## Subversion /should/ tell you what files it's planning on deleting# and I suggest you review it before checking in.## Author: Arthur Richards (awjrichards [at] gmail)# Copyright: None, just please do not use for evil.#####################################################################for f in `svn status | grep ! | sed 's/^![ ]*//'`dosvn del "$f"done