aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/mkbuild
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/mkbuild')
-rwxr-xr-xtrunk/src/mkbuild21
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
;;