credits.sh 634 B

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