diff options
author | Charles Baylis <charles.baylis@linaro.org> | 2017-04-20 13:22:43 +0100 |
---|---|---|
committer | Charles Baylis <charles.baylis@linaro.org> | 2017-04-27 08:33:56 +0000 |
commit | deb55fc4762e270b5ff5ed0fafd01a0e84707dad (patch) | |
tree | 8c86ef62f6ff7c471278d21aa76d54e95a60803b /tcwg-generate-source-cache.sh | |
parent | ee82dce6330d5b1f6a404d85419facc6ebfb3f9a (diff) |
tcwg-generate-source-cache: remove abe hacks.
With the --retrieve option, Abe is able to maintain a snapshots-ref
directory without hacks to remove branches and checkout directories.
Change-Id: I404afdc9397f00e2847c1c9056d17ab7a4aaa481
Diffstat (limited to 'tcwg-generate-source-cache.sh')
-rwxr-xr-x | tcwg-generate-source-cache.sh | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/tcwg-generate-source-cache.sh b/tcwg-generate-source-cache.sh index 8b2ce9dd..ca42520d 100755 --- a/tcwg-generate-source-cache.sh +++ b/tcwg-generate-source-cache.sh @@ -88,20 +88,11 @@ generate_abe_snapshots () x86_64-linux-gnu ) - # Remove checked-out branch directories - rm -rf $snapshots_dir/*~* - for t in "${targets[@]}"; do for c in gcc5 gcc6 gcc7; do - ./abe.sh --target $t --extraconfigdir config/$c --checkout all + ./abe.sh --target $t --extraconfigdir config/$c --retrieve all done done - - # Remove checked-out branch directories - rm -rf $snapshots_dir/*~* - - # Remove md5sums to force ABE to fetch canonical version via http://. - rm -f $snapshots_dir/md5sums } # Checkout LLVM tools into $llvm_reference @@ -157,10 +148,6 @@ update_git_repos () { cd $dir/$repo # Update and prune local clone git remote update -p - # Move to a detached HEAD - git checkout origin/master - # Cleanup all branches - git branch | grep -v \* | xargs -r git branch -D ) done } |