mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Remove git dependency for stable rebuilds
This commit is contained in:
parent
98eadd32f4
commit
4776d73a52
2 changed files with 10 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -15,3 +15,4 @@ compiler/**/*.js
|
||||||
.*.generated.ts
|
.*.generated.ts
|
||||||
.tmp/
|
.tmp/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.build_cache/
|
||||||
|
|
|
@ -4,10 +4,18 @@ set -e
|
||||||
err() { echo "error: line $(caller)"; }
|
err() { echo "error: line $(caller)"; }
|
||||||
trap err ERR
|
trap err ERR
|
||||||
|
|
||||||
|
mkdir -p .build_cache
|
||||||
cd src/static
|
cd src/static
|
||||||
|
|
||||||
authors="../../build/static/authors.html"
|
authors="../../build/static/authors.html"
|
||||||
|
|
||||||
sed "/REPLACETHIS/,$ d" authors.html > "$authors"
|
sed "/REPLACETHIS/,$ d" authors.html > "$authors"
|
||||||
git shortlog -sn HEAD | cut -c8- | awk '!seen[$0]++' | sed 's/^/<p>/' | sed 's/$/<\/p>/' >> "$authors"
|
|
||||||
|
# If we're in a git repo, refresh the cache
|
||||||
|
if [ -d "../../.git/" ]; then
|
||||||
|
git shortlog -sn HEAD | cut -c8- | awk '!seen[$0]++' | sed 's/^/<p>/' | sed 's/$/<\/p>/' > ../../.build_cache/authors
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat ../../.build_cache/authors >> "$authors"
|
||||||
|
|
||||||
sed "1,/REPLACETHIS/ d" authors.html >> "$authors"
|
sed "1,/REPLACETHIS/ d" authors.html >> "$authors"
|
||||||
|
|
Loading…
Add table
Reference in a new issue