summaryrefslogtreecommitdiffstats
path: root/commitpkg
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-06-28 09:54:50 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-06-28 09:54:50 +0200
commitf2959b8dd50efc0ba8bb0fe1a694ca2a9997de36 (patch)
treeda228dd58ea14b446fc7a1f658694412cb46767f /commitpkg
parent0564514df47f552e307dd67d176d8de233d40134 (diff)
downloaddevtools-f2959b8dd50efc0ba8bb0fe1a694ca2a9997de36.tar.gz
devtools-f2959b8dd50efc0ba8bb0fe1a694ca2a9997de36.tar.xz
check if changelog and install files are commited to svn
Diffstat (limited to 'commitpkg')
-rwxr-xr-xcommitpkg15
1 files changed, 14 insertions, 1 deletions
diff --git a/commitpkg b/commitpkg
index 3f971bf..627941f 100755
--- a/commitpkg
+++ b/commitpkg
@@ -61,12 +61,25 @@ else
fi
# check if all local source files are under version control
-(for s in ${source[@]} $install; do
+(for s in ${source[@]}; do
echo $s | grep -vq '://' && \
svn status $s | grep -q '?' && \
abort "$s is not under version control"
done) || true
+# check if changelog and install files are under version control
+(for i in 'changelog' 'install'; do
+ local filelist=$(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD)
+ local file
+ for file in $filelist; do
+ # evaluate any bash variables used
+ eval file=${file}
+ if svn status ${file} | grep -q '?'; then
+ abort "${file} is not under version control"
+ fi
+ done
+done) || true
+
# see if any limit options were passed, we'll send them to rsync
unset rsyncopts
if [ "$1" = '-l' ]; then