From ea611d2c15865a272569cc9c7f117a85f11e636d Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 15 Oct 2017 03:16:30 +0800 Subject: [PATCH] Add a script for priming the cache --- _support/cf-prime.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 _support/cf-prime.sh diff --git a/_support/cf-prime.sh b/_support/cf-prime.sh new file mode 100755 index 000000000..74614e2ea --- /dev/null +++ b/_support/cf-prime.sh @@ -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