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}
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
}
+function list_mkbuild_contents {
+
+ if [ -e "$MKBUILD_NAME" ]; then
+ ls `dirname $MKBUILD_NAME`
+ else
+ echo "Not found: $MKBUILD_NAME"
+ fi
+
+}
+
# ----------------------------------------------------------------
#=============================
'status')
repository_status
;;
+ 'list')
+ list_mkbuild_contents
+ ;;
'edit')
edit_mkbuild
;;