index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | archrelease | 10 |
diff --git a/archrelease b/archrelease index 2ce6f35..bc9a7d6 100755 --- a/archrelease +++ b/archrelease @@ -5,6 +5,16 @@ if [ "$1" = "" ]; then exit 1 fi +if [ ! -f "PKGBUILD" ]; then + echo "archrelease: PKGBUILD not found" + exit 1 +fi + +if [ "$(basename $(readlink -f .))" != "trunk" ]; then + echo "archrelease: Not in a package trunk dir" + exit 1 +fi + if [ ! -d ../repos/$1 ]; then pushd .. [ -d repos ] || mkdir repos |