From 1d62989f49eb7e8cc387758e9ff623fe947cc418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Tue, 19 Oct 2010 14:33:33 -0500 Subject: Use /home/joshpar/.config and added usage function --- librerelease | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/librerelease b/librerelease index f1b9cd4..c7b21e6 100755 --- a/librerelease +++ b/librerelease @@ -21,15 +21,26 @@ # You should have received a copy of the GNU General Public License # along with Parabola. If not, see . -source /etc/libretools.conf +if [-e $XDG_CONFIG_HOME/.libretools.conf]; then + source $XDG_CONFIG_HOME/.libretools.conf +else + source /etc/libretools.conf +fi batchfile=/tmp/librerelease_batchfile.$$ # End Config +usage() { + echo "Usage: $0 " + echo "" + echo "Libre release will upload the package and source built by the PKGBUILD on the" + echo "current directory to the specified repo." +} + repo=${1} if [ ${#repo} -eq 0 ]; then - echo "Usage: $0 " + usage exit 1; fi -- cgit v1.2.2