From 45b31bbc76745c51dd52b7722a7fa697157d3f2b Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 30 Jan 2009 17:47:28 +0000 Subject: adding mkbuild -ls git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@785 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/mkbuild | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild index b256ec0..f81526a 100755 --- a/trunk/src/mkbuild +++ b/trunk/src/mkbuild @@ -86,6 +86,8 @@ ${red}DESCRIPTION${normal} import mkbuild and SlackBuild repositories in a svn tree ${red}--status${normal} print mkbuild and SlackBuild svn repositories status + ${red}-ls${normal}, ${red}--list${normal} + list mkbuild folder contents ${red}-h${normal}, ${red}--help${normal} this help mesage ${red}-n${normal}, ${red}--new${normal} ${green}${normal} @@ -203,6 +205,12 @@ function set_parameters { set_mkbuild_name $2 break # we need to break otherwise specific arguments are evalued ;; + '-ls'|'--list') + # Repository status + ACTION="list" + set_mkbuild_name $2 + break # we need to break otherwise specific arguments are evalued + ;; '-um'|'--update-manifest') ACTION="update_manifest" set_mkbuild_name $2 @@ -1658,6 +1666,16 @@ function delete_slackbuilds { } +function list_mkbuild_contents { + + if [ -e "$MKBUILD_NAME" ]; then + ls `dirname $MKBUILD_NAME` + else + echo "Not found: $MKBUILD_NAME" + fi + +} + # ---------------------------------------------------------------- #============================= @@ -1754,6 +1772,9 @@ case $ACTION in 'status') repository_status ;; + 'list') + list_mkbuild_contents + ;; 'edit') edit_mkbuild ;; -- cgit v1.2.3