File: gen_authors.sh

package info (click to toggle)
brisk-menu 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 984 kB
  • sloc: ansic: 5,796; xml: 93; sh: 71; makefile: 14
file content (12 lines) | stat: -rwxr-xr-x 461 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
git log --format='%aN <%aE>' | sort -f | uniq > AUTHORS

echo "#pragma once" > src/lib/authors.h
echo "#include <stdlib.h>" >> src/lib/authors.h
echo "/* Machine generated by gen_authors.sh */" >> src/lib/authors.h
echo "static const char *brisk_developers[] = {" >> src/lib/authors.h
while read -r line; do
    echo "        \"${line}\"," >> src/lib/authors.h
done < AUTHORS
echo "        NULL," >> src/lib/authors.h
echo "};" >> src/lib/authors.h