summaryrefslogtreecommitdiffstats
path: root/adei/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'adei/scripts')
-rwxr-xr-xadei/scripts/adei-branch.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/adei/scripts/adei-branch.sh b/adei/scripts/adei-branch.sh
index 4ba77ac..e56f792 100755
--- a/adei/scripts/adei-branch.sh
+++ b/adei/scripts/adei-branch.sh
@@ -35,6 +35,8 @@ LOCK_FILE=.lock
cd /adei/src
make
+ [ -n "$ADEI_REPOSITORY" ] && bzr config push_location=${ADEI_REPOSITORY}/adei
+
[ -d tmp ] && rm tmp
ln -s ../tmp tmp
chmod 0777 /adei/tmp
@@ -58,10 +60,13 @@ LOCK_FILE=.lock
if [[ "$setup" == *-logs ]]; then
branch "http://darksoft.org/bzr/adei/setups/$setup" &> /dev/null
[ $? -eq 0 ] || cp -ar /adei/src/setups/logs $setup
- echo "here"
else
branch "http://darksoft.org/bzr/adei/setups/$setup"
fi
+ (
+ cd $setup
+ [ -n "$ADEI_REPOSITORY" -a -d .bzr ] && bzr config push_location=${ADEI_REPOSITORY}/adei-setups/$setup
+ )
)
fi
if [ -d ../cfg/$setup ]; then