aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/mkbuild
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/mkbuild')
-rwxr-xr-xtrunk/src/mkbuild34
1 files changed, 27 insertions, 7 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild
index afb8571..d15af0f 100755
--- a/trunk/src/mkbuild
+++ b/trunk/src/mkbuild
@@ -15,9 +15,7 @@
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place - Suite 330, Boston, MA 02111-1307, USA
#
-#
# Based in model generic.SlackBuild of Luiz
-#
# Version $Rev$ - $Author$
PROG_VERSION="1.2.8"
@@ -76,6 +74,12 @@ ${red}DESCRIPTION${normal}
submit .mkbuild in local svn mkbuild tree
${red}-sa${normal}, ${red}--submit-all${normal}
submit SlackBuild and .mkbuild files in local svn tree
+ ${red}-cs${normal}, ${red}--commit-slackbuild${normal}
+ commit SlackBuilds in svn SlackBuild tree
+ ${red}-cm${normal}, ${red}--commit-mkbuild${normal}
+ commit .mkbuild in svn mkbuild tree
+ ${red}-ca${normal}, ${red}--commit-all${normal}
+ commit SlackBuild and .mkbuild files in svn tree
${red}-h${normal}, ${red}--help${normal}
this help mesage
${red}-n${normal}, ${red}--new${normal} ${green}<mkbuild_name>${normal}
@@ -136,18 +140,34 @@ function set_parameters {
shift
;;
'-ss'|'--submit-slackbuild')
- # Commit SlackBuild file
+ # Submit SlackBuild file
SUBMIT_SLACKBUILD=$on
;;
'-sm'|'--submit-mkbuild')
- # submit mkbuild file
+ # Submit mkbuild file
SUBMIT_MKBUILD=$on
;;
'-sa'|'--submit-all')
- # Commit SlackBuild and mkbuild file
+ # Submit SlackBuild and mkbuild file
SUBMIT_SLACKBUILD=$on
SUBMIT_MKBUILD=$on
;;
+ '-cs'|'--commit-slackbuild')
+ # Commit SlackBuild file
+ commit_changes $SLACKBUILDS_DIR
+ exit 0
+ ;;
+ '-cm'|'--commit-mkbuild')
+ # commit mkbuild file
+ commit_changes $MKBUILDS_DIR
+ exit 0
+ ;;
+ '-ca'|'--commit-all')
+ # Commit SlackBuild and mkbuild file
+ commit_changes $SLACKBUILDS_DIR
+ commit_changes $MKBUILDS_DIR
+ exit 0
+ ;;
'-n'|'--new')
# New mkbuild configure file
MKBUILD_NAME="${2//.mkbuild}.mkbuild"
@@ -651,10 +671,10 @@ function decompress_find {
function load_parameters {
# Load Createpkg parameters
- SLACKBUILDS_DIR="`eval_parameter SLACKBUILDS_DIR /var/simplaret/slackbuilds`"
+ SLACKBUILDS_DIR="`eval_parameter SLACKBUILDS_DIR /var/simplepkg/slackbuilds`"
[ ! -d $SLACKBUILDS_DIR ] && mkdir -p $SLACKBUILDS_DIR
- MKBUILDS_DIR="`eval_parameter MKBUILDS_DIR /var/simplaret/mkbuilds`"
+ MKBUILDS_DIR="`eval_parameter MKBUILDS_DIR /var/simplepkg/mkbuilds`"
[ ! -d $SLACKBUILDS_DIR ] && mkdir -p $SLACKBUILDS_DIR
SLACKBUILDS_SVN="`eval_parameter SLACKBUILDS_DIR http://slack.sarava.org/slackbuilds`"