aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/mkbuild
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/mkbuild')
-rwxr-xr-xtrunk/src/mkbuild38
1 files changed, 35 insertions, 3 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild
index 00d6ac2..d185ee0 100755
--- a/trunk/src/mkbuild
+++ b/trunk/src/mkbuild
@@ -84,6 +84,8 @@ ${red}DESCRIPTION${normal}
import SlackBuild repository in a svn tree
${red}-ia${normal}, ${red}-i${normal}, ${red}--import-all${normal}, ${red}--import${normal}
import mkbuild and SlackBuild repositories in a svn tree
+ ${red}--status${normal}
+ print mkbuild and SlackBuild svn repositories status
${red}-h${normal}, ${red}--help${normal}
this help mesage
${red}-n${normal}, ${red}--new${normal} ${green}<mkbuild_name>${normal}
@@ -178,23 +180,28 @@ function set_parameters {
break # we need to break otherwise commit log message is evalued
;;
'-is'|'--import-slackbuilds')
- # Commit SlackBuild file
+ # Import SlackBuilds
ACTION="import_slackbuilds"
MKBUILD_NAME="${2//.mkbuild}.mkbuild"
break # we need to break otherwise specific arguments are evalued
;;
'-im'|'--import-mkbuilds')
- # import mkbuild file
+ # Import mkbuilds
ACTION="import_mkbuilds"
MKBUILD_NAME="${2//.mkbuild}.mkbuild"
break # we need to break otherwise specific arguments are evalued
;;
'-ia'|'-i'|'--import-all'|'--import')
- # Commit SlackBuild and mkbuild file
+ # Import SlackBuilds and mkbuilds
ACTION="import_all"
MKBUILD_NAME="${2//.mkbuild}.mkbuild"
break # we need to break otherwise specific arguments are evalued
;;
+ '--status')
+ # Repository status
+ ACTION="status"
+ break # we need to break otherwise specific arguments are evalued
+ ;;
'-um'|'--update-manifest')
ACTION="update_manifest"
MKBUILD_NAME="${2//.mkbuild}.mkbuild"
@@ -746,6 +753,28 @@ function import_slackbuilds {
}
+function repository_status {
+
+ local cwd
+
+ if [ -d "$MKBUILDS_DIR/.svn" ]; then
+ echo "Status of $MKBUILDS_DIR."
+ cwd="`pwd`"
+ cd $MKBUILDS_DIR && su_svn status
+ cd $cwd
+ fi
+
+ if [ -d "$SLACKBUILDS_DIR/.svn" ]; then
+ cwd="`pwd`"
+ echo "Status of $SLACKBUILDS_DIR."
+ cd $SLACKBUILDS_DIR && su_svn status
+ cd $cwd
+ fi
+
+ exit 0
+
+}
+
# ----------------------------------------------------------------
# general functions
# ----------------------------------------------------------------
@@ -1560,6 +1589,9 @@ if [ ! -z "$MKBUILD_NAME" ]; then
'search')
search_mkbuild -i
;;
+ 'status')
+ repository_status
+ ;;
'edit')
edit_mkbuild
;;