File: update_citations.sh

package info (click to toggle)
volk 3.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,916 kB
  • sloc: ansic: 40,447; cpp: 2,005; asm: 918; python: 897; xml: 375; sh: 157; makefile: 14
file content (18 lines) | stat: -rwxr-xr-x 481 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
#
# Copyright 2022 Johannes Demel
#
# This script is part of VOLK.
#
# SPDX-License-Identifier: LGPL-3.0-or-later
#
# Find all contributors according to git and update `.zenodo.json` accordingly.

script_name=$0
script_full_path=$(dirname "$0")
python_script=$"$script_full_path/run_citations_update.py"

contributors_list="$(git log --pretty="%an <%ae>" | sort | uniq)"

# Run a Python script to make things easier.
python3 $python_script "$contributors_list"