summaryrefslogtreecommitdiff
path: root/update-count.sh
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-03-12 07:48:15 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-03-12 07:48:15 +0100
commitd3670965eaf950173c7d74b7fc498d8bd98e14f2 (patch)
treedcc6c2ff446a1d76168244ce0f0c0c39df61fbaa /update-count.sh
parentb454da43ca724512c36402e27b7575092c5ea364 (diff)
downloadmemory-leaks-d3670965eaf950173c7d74b7fc498d8bd98e14f2.tar.xz
Move all scripts under a new folder
This folder will be used to hold all website-building code. At least until I change my mind and figure it's better to do it otherwise.
Diffstat (limited to 'update-count.sh')
-rwxr-xr-xupdate-count.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/update-count.sh b/update-count.sh
deleted file mode 100755
index d0a094e..0000000
--- a/update-count.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-list-tracked ()
-{
- GIT_LITERAL_PATHSPECS='' git ls-files '*.md' '*.org'
-}
-
-count-leaks ()
-{
- let pages=0
- let words=0
-
- while read filename
- do
- let words+=$(git show HEAD:${filename} | wc -w | cut -d' ' -f1)
- let pages+=1
- done
-
- echo ${words} ${pages}
-}
-
-
-
-read words pages < <(list-tracked | count-leaks)
-
-pattern="[0-9]* words in [0-9]* pages"
-actual="${words} words in ${pages} pages"
-
-sed -i "s/${pattern}/${actual}/" README.md