aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-16 16:07:26 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-16 16:07:26 +0000
commit4e19402484e6cbc2e543192baed16d3dc8c77ba2 (patch)
treee90a5eeaeab2bd04921dcf9a3ad77d60faefbc2e
parent185795428e0761fadeea896a9695cfbf16290510 (diff)
downloadsimplepkg-4e19402484e6cbc2e543192baed16d3dc8c77ba2.tar.gz
simplepkg-4e19402484e6cbc2e543192baed16d3dc8c77ba2.tar.bz2
enhanced behaviour for createpkg --search
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@746 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r--trunk/src/createpkg13
1 files changed, 8 insertions, 5 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 7b23f48..a46417d 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -87,7 +87,7 @@ ${red}COPYRIGHT${normal}
This is free software. You may redistribute copies of it under the
terms of the GNU General Public License
<${yellow}http://www.gnu.org/licenses/gpl.html${normal}>. There is NO WARRANTY,
- to the extent permitted by law." | more
+ to the extent permitted by law."
}
function build_all_slackbuild {
@@ -534,11 +534,14 @@ case $1 in
exit $EXIT_CODE
;;
'--search'|'-s')
- [ $# -ne 2 ] && usage # two parameters is required
- LIST=`find_slackbuild $2`
- for i in $LIST; do
+ if [ $# -ne 2 ]; then
+ list_builds
+ else
+ LIST=`find_slackbuild $2`
+ for i in $LIST; do
echo $i | sed 's/.*\/\([^\/]\+\)\.[Ss]lack[Bb]uild$/ \1/'
- done
+ done
+ fi
exit $EXIT_CODE
;;
'--info'|'-f')