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, 9 insertions, 12 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild
index d705929..fdee5ed 100755
--- a/trunk/src/mkbuild
+++ b/trunk/src/mkbuild
@@ -643,25 +643,22 @@ function submit_mkbuild {
local candidate oldplace
- # check mkbuild directory
+ # Check mkbuild directory
[ ! -d $MKBUILDS_DIR ] && build_repo $MKBUILDS_DIR $MKBUILDS_SVN
# Get mkbuild path in parameter file
MKBUILD_PATH=$SLACKBUILD_PATH
- # change to mkbuilds directory
+ # Change to mkbuilds directory
cd $MKBUILDS_DIR/
- # Add mkbuild scripts
- # check path
+ # Check path
[ ! -e $MKBUILD_PATH ] && svn_mkdir $MKBUILD_PATH
- # add mkbuild
- svn_copy $WORK/`basename $MKBUILD_NAME` $MKBUILD_PATH
-
- for i in `ls $WORK | grep -E -v '(SlackBuild|old|slack-required|.mkbuild$|.tmp$)\*{0,1}$'`; do
+ # Add relevant files
+ for i in `ls $WORK | grep -E -v '(SlackBuild|old|slack-required|.tmp$)\*{0,1}$'`; do
if [ "`basename $i`" != "$DIST_SRC_NAME" ]; then
- if ! is_the_same $(dirname $MKBUILD_PATH) $WORK; then
+ if ! is_the_same $MKBUILD_PATH $WORK; then
svn_copy $WORK/$i $MKBUILD_PATH
else
svn_add $WORK/$i
@@ -669,7 +666,7 @@ function submit_mkbuild {
fi
done
- # remove stuff in old places
+ # Remove stuff in old places
for candidate in $(find . -name $(basename $MKBUILD_NAME)); do
oldplace="`dirname $candidate | sed -e 's/^\.\///'`"
if [ "$oldplace" != "$MKBUILD_PATH" ]; then
@@ -685,8 +682,8 @@ function submit_mkbuild {
function submit_cleanup {
- # remove files that should not be stored at the mkbuilds repository
- if ! is_the_same $(dirname $MKBUILD_PATH) $WORK; then
+ # Remove files that should not be stored at the mkbuilds repository
+ if is_the_same $MKBUILD_PATH $WORK; then
(
cd $WORK
rm -f *.old *.tmp *.SlackBuild slack-required $DIST_SRC_NAME