credits.sh 643 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. set -eu
  3. WEBSITE_DIR="../crown-website"
  4. CREDITS_DIR="${WEBSITE_DIR}/src/data/about/credits"
  5. ALIASES="scripts/dist/authors-aliases.csv"
  6. CURR_TAG=$(git describe --tags --abbrev=0)
  7. PREV_TAG=$(git describe --tags --abbrev=0 "$CURR_TAG"^)
  8. scripts/dist/authors.sh -a "${ALIASES}" -s "$PREV_TAG" -e "$CURR_TAG" \
  9. | sort \
  10. | ./scripts/dist/to-json.sh \
  11. > "${CREDITS_DIR}"/latest.json
  12. scripts/dist/authors.sh -a "${ALIASES}" \
  13. | sort \
  14. | ./scripts/dist/to-json.sh \
  15. > "${CREDITS_DIR}"/alltime.json