]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
adding mkbuild -ls
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 30 Jan 2009 17:47:28 +0000 (17:47 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 30 Jan 2009 17:47:28 +0000 (17:47 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@785 04377dda-e619-0410-9926-eae83683ac58

trunk/src/mkbuild

index b256ec0f7e083436575a1662e6f5662e14d8a0fd..f81526a459a6e6ab8df13489441e215617b8825e 100755 (executable)
@@ -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
   ;;