summaryrefslogtreecommitdiffstats
path: root/adei/scripts/adei-branch.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-03-21 22:04:23 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-03-21 22:04:23 +0100
commit2b3959be03480c80b686eadaa90fd72fac93a375 (patch)
tree3ee13496080e77fb07b0a8c9749695e16afbc9a4 /adei/scripts/adei-branch.sh
parentb4d227b34e54bdbd1b97db4fd06fb1eb81271793 (diff)
downloadadei-2b3959be03480c80b686eadaa90fd72fac93a375.tar.gz
adei-2b3959be03480c80b686eadaa90fd72fac93a375.tar.bz2
adei-2b3959be03480c80b686eadaa90fd72fac93a375.tar.xz
adei-2b3959be03480c80b686eadaa90fd72fac93a375.zip
Add bzr-webdav and configure push repositories
Diffstat (limited to 'adei/scripts/adei-branch.sh')
-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