diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-01-30 17:47:28 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-01-30 17:47:28 +0000 |
commit | 45b31bbc76745c51dd52b7722a7fa697157d3f2b (patch) | |
tree | 45be8725c7fd5dc96c1b5587cfe040302ff311e2 | |
parent | e31a64961a70913f6321cc4f3b416677dcf1de05 (diff) | |
download | simplepkg-45b31bbc76745c51dd52b7722a7fa697157d3f2b.tar.gz simplepkg-45b31bbc76745c51dd52b7722a7fa697157d3f2b.tar.bz2 |
adding mkbuild -ls
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@785 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-x | trunk/src/mkbuild | 21 |
1 files changed, 21 insertions, 0 deletions
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}<mkbuild_name>${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 ;; |