update-css.sh 529 B

1234567891011121314
  1. #!/bin/bash
  2. # Copyright 2017 The Chromium Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. URL_BASE='https://gerrit.googlesource.com/gitiles/+/HEAD/gitiles-servlet/src/main/resources/com/google/gitiles/static'
  6. # Quickly pull down the latest gitiles css files.
  7. for css in base doc prettify/prettify; do
  8. output="${css#*/}.css"
  9. url="${URL_BASE}/${css}.css?format=TEXT"
  10. echo "Updating ${output}"
  11. curl "${url}" | base64 -d >"${output}"
  12. done