changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / scripts/get-code.sh

changeset 371: 7dcabf3e0edc
parent: 989b1b4782dc
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 24 Sep 2024 15:53:24 -0400
permissions: -rwxr-xr-x
description: no link in bootstrap.sh
1 #!/usr/bin/env bash
2 # Get The Compiler Company source code
3 SRC="${1:-code}"
4 OUT=.stash/src/$SRC
5 mkdir -pv $OUT
6 cd $OUT
7 wget -nc https://packy.compiler.company/bundle/$SRC.tar.zst
8 unzstd $SRC.tar.zst
9 tar -xvf $SRC.tar
10 rm -rf $SRC.tar
11 repos=`ls *.hg`
12 for f in $repos; do
13  echo "cloning repo: $f"
14  rep=`basename $f .hg`
15  if [ -d $rep ]; then
16  echo "$rep already exists"
17  else
18  hg clone $f $(basename $f .hg)
19  fi
20 done
21 echo "... Done."