aboutsummaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 19:53:03 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 19:53:03 +0000
commitfd95b52dae10cf944df591cd67d5124b927e1369 (patch)
treea98225a44bd24e47ad1c6c3a47701bda98dd3c76 /trunk/src
parent7ccd081e2da12aa0a1a534bf2567951f3f945b47 (diff)
downloadsimplepkg-fd95b52dae10cf944df591cd67d5124b927e1369.tar.gz
simplepkg-fd95b52dae10cf944df591cd67d5124b927e1369.tar.bz2
all previous "commit" functions and command line options changed to "submit"
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@610 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src')
-rwxr-xr-xtrunk/src/mkbuild50
1 files changed, 25 insertions, 25 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild
index 951252e..653c2b3 100755
--- a/trunk/src/mkbuild
+++ b/trunk/src/mkbuild
@@ -69,12 +69,12 @@ ${red}DESCRIPTION${normal}
Program options:
${red}-d${normal}, ${red}--debug${normal}
enable debug mode
- ${red}-cs${normal}, ${red}--commit-slackbuild${normal}
- commit SlackBuilds in local svn SlackBuild tree
- ${red}-cm${normal}, ${red}--commit-mkbuild${normal}
- commit .mkbuild in local svn mkbuild tree
- ${red}-c${normal}, ${red}--commit-all${normal}
- commit SlackBuild and .mkbuild files in local svn tree
+ ${red}-ss${normal}, ${red}--submit-slackbuild${normal}
+ submit SlackBuilds in local svn SlackBuild tree
+ ${red}-sm${normal}, ${red}--submit-mkbuild${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}-h${normal}, ${red}--help${normal}
this help mesage
${red}-n${normal}, ${red}--new${normal} ${green}<mkbuild_name>${normal}
@@ -89,8 +89,8 @@ ${red}DESCRIPTION${normal}
print debug information
${red}EXAMPLES${normal}
- ${red}mkbuild -c pyrex.mkbuild${normal}
- build pyrex.SlackBuild and commit .mkbuild and .SlackBuild in
+ ${red}mkbuild -sa pyrex.mkbuild${normal}
+ build pyrex.SlackBuild and submit .mkbuild and .SlackBuild in
Slack.Sarava local tree.
${red}mkbuild -a \"Jose Araujo\" -ai \"ja\" -n pyrex${normal}
make a basic pyrex.mkbuild with author name \"Jose Araujo\" and
@@ -134,18 +134,18 @@ function set_parameters {
is_number $BUILD_NUMBER || handle_error "$ERROR_NOT_NUMBER" "--build-number"
shift
;;
- '-cs'|'--commit-slackbuild')
+ '-ss'|'--submit-slackbuild')
# Commit SlackBuild file
- COMMIT_SLACKBUILD=$on
+ SUBMIT_SLACKBUILD=$on
;;
- '-cm'|'--commit-mkbuild')
- # commit mkbuild file
- COMMIT_MKBUILD=$on
+ '-sm'|'--submit-mkbuild')
+ # submit mkbuild file
+ SUBMIT_MKBUILD=$on
;;
- '-c'|'--commit-all')
+ '-sa'|'--submit-all')
# Commit SlackBuild and mkbuild file
- COMMIT_SLACKBUILD=$on
- COMMIT_MKBUILD=$on
+ SUBMIT_SLACKBUILD=$on
+ SUBMIT_MKBUILD=$on
;;
'-n'|'--new')
# New mkbuild configure file
@@ -539,11 +539,11 @@ function apply_mkpatch {
# ----------------------------------------------------------------
# ------------------- svn functions ------------------------------
-function commit_slackbuild {
+function submit_slackbuild {
# Commit SlackBuild in local Slack.Sarava tree
if [ $UID -ne 0 ]; then
- echo "Only root can commit SlackBuilds..."
+ echo "Only root can submit SlackBuilds..."
return 1
fi
echo -e "\nCommit $SLACKBUILD"
@@ -572,11 +572,11 @@ function commit_slackbuild {
}
-function commit_mkbuild {
+function submit_mkbuild {
# Commit mkbuild in local mkbuild Slack.Sarava tree
if [ $UID -ne 0 ]; then
- echo "Only root can commit mkbuild..."
+ echo "Only root can submit mkbuild..."
return 1
fi
echo -e "\nCommit $MKBUILD_NAME"
@@ -687,9 +687,9 @@ fi
# Start constants
set_constants
-# Set commit off
-COMMIT_SLACKBUILD=$off
-COMMIT_MKBUILD=$off
+# Set submit off
+SUBMIT_SLACKBUILD=$off
+SUBMIT_MKBUILD=$off
# Set verbose off
VERBOSE=$off
SVN_MOD=$off
@@ -918,10 +918,10 @@ if [ ! -z $MKBUILD_NAME ]; then
change_others_parameters
# Commit SlackBuild
- [ $COMMIT_SLACKBUILD -eq $on ] && commit_slackbuild
+ [ $SUBMIT_SLACKBUILD -eq $on ] && submit_slackbuild
# Commit mkbuild
- [ $COMMIT_MKBUILD -eq $on ] && commit_mkbuild
+ [ $SUBMIT_MKBUILD -eq $on ] && submit_mkbuild
;;
'search')
SEARCH=`find $MKBUILDS_DIR -iname $MKBUILD_NAME`