#! /bin/sh #---------------------------------------------------------------------------- # /var/install/bin/packeis-search - Pack-Eis search # # Copyright (c) 2004-2006 Fabian Wolter # # Creation: 2004-08-29 fabian # Last Update: $Id$ # # Usage: packeis-search # or # packeis-search package-name # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- # include eislib . /var/install/include/eislib # set ask ask=/var/install/bin/ask if [ -z "${1}" ] then clrhome mecho -info "Pack-Eis search" mecho search=`${ask} "Enter your searchstring: " '' "*"` else search="${1}" fi encoded_search=`echo ${search} | sed 's/ /%20/'` /var/install/bin/install-package "http://www.pack-eis.de/index.php?q=${encoded_search}&type=eis-list"