1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash if [ ! -e PKGBUILD ]; then exit 1; fi source PKGBUILD pkg=$pkgbase if [ ${#pkg} -eq 0 ]; then pkg=$pkgname; fi hg commit $@ -m "Commiting libre package $pkg-$pkgver-$pkgrel" -v || exit 1 exit 0