Add a script for priming the cache

This commit is contained in:
Rico Sta. Cruz 2017-10-15 03:16:30 +08:00
parent 4d314f8439
commit ea611d2c15
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 16 additions and 0 deletions

16
_support/cf-prime.sh Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
(
echo https://devhints.io/
(
git ls-files \
| grep -E '\.md$' \
| grep -v -E 'CONTRIBUTING|README|Readme' \
| grep -v -E '^_' \
| sort \
| uniq \
| sed 's/\.md$//g'
) \
| sed 's#^#https://devhints.io/#g'
) \
| xargs curl >/dev/null