diff options
Diffstat (limited to 'z-distfiles/scripts-gw-1.1/svn-add')
-rwxr-xr-x | z-distfiles/scripts-gw-1.1/svn-add | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/z-distfiles/scripts-gw-1.1/svn-add b/z-distfiles/scripts-gw-1.1/svn-add index 0368725..09bc0f7 100755 --- a/z-distfiles/scripts-gw-1.1/svn-add +++ b/z-distfiles/scripts-gw-1.1/svn-add @@ -1,7 +1,14 @@ #/bin/bash -svn status | grep '^?' | sed -e 's/^?//' +FILES=`svn status | sed -e '/^[^?]/d + s/^?// + s/^ *// + s/ /\\ /'` + +echo ${FILES} if [ "${1}" = "do" ]; then - svn status | grep '^?' | sed -e 's/^?//' | xargs svn add + if [ "x${FILES}" != "x" ]; then + svn add "${FILES}" + fi fi |