From fe0d876c4930180e6604b754cb8287ae042127da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Thu, 12 May 2011 14:42:34 -0500 Subject: stdnull needs quotes --- aur | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aur') diff --git a/aur b/aur index e300dd1..38b2e2e 100755 --- a/aur +++ b/aur @@ -14,7 +14,7 @@ for _pkg in ${@}; do continue } - stdnull pushd $_pkg + stdnull "pushd $_pkg" source PKGBUILD -- cgit v1.2.3-2-g168b From 92d1fe72f7ec9deea70772aa41ec1e29072599c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Thu, 12 May 2011 14:54:49 -0500 Subject: little fix --- aur | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'aur') diff --git a/aur b/aur index 38b2e2e..44ac650 100755 --- a/aur +++ b/aur @@ -19,13 +19,15 @@ for _pkg in ${@}; do source PKGBUILD pkgbuild-check-nonfree || { - warning "This PKGBUILD links to known unfree packages" + if [ $? -eq 15 ]; then + warning "This PKGBUILD links to known unfree packages" + fi } msg2 "Checking license..." free=0 for _license in ${license[@]}; do - if ! -d /usr/share/licenses/common/$_license; then + if [ ! -d /usr/share/licenses/common/$_license ]; then warning "License $_license is not a common license" free=1 fi -- cgit v1.2.3-2-g168b From 7f118f53283d7e228c40a40076815ce94ebb94a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Mon, 16 May 2011 00:44:39 -0500 Subject: Cleaned up some things, added option parse to some scripts. --- aur | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'aur') diff --git a/aur b/aur index 44ac650..b7ad018 100755 --- a/aur +++ b/aur @@ -3,6 +3,20 @@ source /etc/libretools.conf source /etc/abs.conf +function usage { + echo "Usage: $0 pkgname-from-aur1 [pkgname-from-aur2 ...]" + echo + echo "This script will download packages from aur to the current dir" + echo "and check their license for nonfree issues." +} + +while getopts 'h' arg; do + case $arg in + h) usage; exit 0 ;; + *) usage; exit 1 ;; + esac +done + missing_deps=() for _pkg in ${@}; do msg "Downloading $_pkg..." -- cgit v1.2.3-2-g168b