#!/bin/bash # # aurvote : Tool to vote for favorite AUR packages # # Copyright (c) 2007-2010 Julien MISCHKOWITZ # Copyright (c) 2011 tuxce # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published # by the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # NAME='aurvote' VERSION=1.6 TMPDIR=${TMPDIR:-/tmp} AV_TMP="$TMPDIR/aurvote-$USER" CONFIGFILE=${XDG_CONFIG_HOME:-~/.config}/aurvote AUR_URL="https://aur.archlinux.org" AUR_URL_LOGIN="$AUR_URL/login/" AUR_URL_PKG_INFO="$AUR_URL/rpc.php" AUR_URL_PKG_PAGE="$AUR_URL/packages/" AUR_DOMAIN="aur.archlinux.org" AUR_COOKIE="AURSID" AUR_COOKIE_VALUE="" AUR_SETLANG="?setlang=en" AUR_TOKEN="" version() { echo "$NAME $VERSION" } usage() { echo "$NAME $VERSION" echo echo "usage: $0