[asterisk-scf-commits] asterisk-scf/integration/gitall.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Mon Sep 13 16:20:54 CDT 2010
branch "master" has been updated
via 088e59a1a804aeb42a8a63a64902cc64c1c2c97e (commit)
from ca3b584099855e4cca2d859d6bea3bb11505e383 (commit)
Summary of changes:
gitall-asterisk-scf.sh | 32 ++++++++++++++++++++------------
1 files changed, 20 insertions(+), 12 deletions(-)
- Log -----------------------------------------------------------------
commit 088e59a1a804aeb42a8a63a64902cc64c1c2c97e
Author: David M. Lee <dlee at digium.com>
Date: Mon Sep 13 16:19:26 2010 -0500
gitall-asterisk-scf.sh now updates existing repos when run.
diff --git a/gitall-asterisk-scf.sh b/gitall-asterisk-scf.sh
index a271399..8844a6e 100755
--- a/gitall-asterisk-scf.sh
+++ b/gitall-asterisk-scf.sh
@@ -37,17 +37,24 @@ repo[i++]=slice
numTreeRepos=${i}
for ((i=0; i < ${numTreeRepos}; i++)) ; do
- repoName="${tree}${repo[i]}"
-
- repoUri="${gitdepot}:${repoName}"
- repoGitDir="${repo[i]}/.git"
-
- if [ -d "${repoGitDir}" ]; then
- echo ">> Updating from repo ${repoUri}"
- else
- echo ">> Cloning from $repoUri to ${repo[i]}"
- git clone "git@${repoUri}" ${repo[i]}
- fi
+ repoName="${tree}${repo[i]}"
+
+ repoUri="${gitdepot}:${repoName}"
+ repoGitDir="${repo[i]}/.git"
+
+ if [ -d "${repoGitDir}" ]; then
+ echo ">> Updating from repo ${repoUri}"
+ file="${repo[i]}/CMakeLists.txt"
+ backup="${repo[i]}/CMakeLists-localBackup.txt"
+ if [ -f ${backup} ]; then
+ echo "Restoring backup ${backup} to ${file}"
+ mv -f ${backup} ${file}
+ fi
+ ( cd ${repo[i]} && git pull )
+ else
+ echo ">> Cloning from $repoUri to ${repo[i]}"
+ git clone "git@${repoUri}" ${repo[i]}
+ fi
done
#
@@ -58,10 +65,11 @@ gitDir="cmake/.git"
cmakeUri="${gitdepot}:${cmake}"
echo "cmakeUri = ${cmakeUri}"
if [ -d "${gitDir}" ]; then
- echo ">> Updating from repo ${cmakeUri}"
+ echo ">> Updating from repo ${cmakeUri}"
+ ( cd cmake && git pull )
else
- echo ">> Cloning from ${cmakeUri} to cmake"
- git clone "git@${cmakeUri}" cmake
+ echo ">> Cloning from ${cmakeUri} to cmake"
+ git clone "git@${cmakeUri}" cmake
fi
# Build a list of just the components, sans slice.
-----------------------------------------------------------------------
--
asterisk-scf/integration/gitall.git
More information about the asterisk-scf-commits
mailing list