aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/README.txt
blob: 34eac277cfb93ae5cfe127f0fd30108e1f0e9631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
== update-aosp-mirror.py ==

The git-redirects/aosp-mirror.conf file was last updated with the
following method:
- I sshed into the vm and went into the the AOSP mirror directory that has the
  .git repositories.
- Then I run the following shell command to generate a file with all the new
  redirects:
  ls -d *.git | sed 's#\.git$##' | \
  awk '{save=$1 ; gsub("_", "/", $1); \
  printf("Redirect /mirrors/AOSP/%s /mirrors/AOSP/%s\n", $1, save); }'
- Then I formated that file with the update-aosp-mirror.py to add the tabs
- Then realigned the missaligned tabs manually
- I then imported the result in git-redirects/aosp-mirror.conf and fixed the
  result until no lines were removed: if some lines are removed, it means that
  previously (supposedly working) lines were changed or removed.

  For instance with android.googlesource.com's toolchain/llvm_android if we
  have:
      Redirect /mirrors/AOSP/tools/prog_ng /mirrors/AOSP/tools_prog_ng
  Then if it's changed to:
      Redirect /mirrors/AOSP/tools/prog/ng /mirrors/AOSP/tools_prog_ng
  then the fetch will not work anymore.