diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-08-10 15:18:00 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-08-13 20:18:35 +0200 |
commit | 30bcca88d324dc1bf16fb10da72739d9b1d89874 (patch) | |
tree | a9ec2fe6ad4b99caa4fdc3231ed0deec7743ab72 /commitpkg | |
parent | 25aae4ecfea68b6ef3f5cd6d3c0c298df66bd14b (diff) | |
download | devtools-30bcca88d324dc1bf16fb10da72739d9b1d89874.tar.gz devtools-30bcca88d324dc1bf16fb10da72739d9b1d89874.tar.xz |
commitpkg: Use positive patterns in SVN checks
In addition to what we had before, this will also detect:
* Non-existent files.
* Files that are missing or scheduled for deletion.
* Ignored files.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'commitpkg')
-rwxr-xr-x | commitpkg | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -79,7 +79,7 @@ esac # check if all local source files are under version control for s in "${source[@]}"; do - if [[ $s != *://* ]] && svn status "$s" | grep -q '^\?'; then + if [[ $s != *://* ]] && ! svn status -v "$s" | grep -q '^[ AMRX~]'; then abort "$s is not under version control" fi done @@ -90,7 +90,7 @@ for i in 'changelog' 'install'; do for file in $filelist; do # evaluate any bash variables used eval file=${file} - if svn status "${file}" | grep -q '^\?'; then + if ! svn status -v "${file}" | grep -q '^[ AMRX~]'; then abort "${file} is not under version control" fi done |