Add logic for lawn-update mk-all. - gopher-lawn - The gopher lawn gopher directory project.
 (HTM) git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
       ---
 (DIR) commit be3fc0543fc88a8676ffe4d64d60d67260ff186f
 (DIR) parent 4c8c9553a0ad705a581491269d058a282b9547c3
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Mon, 22 Feb 2021 12:49:30 +0100
       
       Add logic for lawn-update mk-all.
       
       Diffstat:
         M lawn-update                         |       2 +-
         M mk-all                              |      12 +++++++++++-
       
       2 files changed, 12 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/lawn-update b/lawn-update
       @@ -32,6 +32,6 @@ cd "${lawngit}"
        rm -f "${tmpfile}"
        
        cd ${lawnbase}
       -./mk-all 2>&1 >/dev/null
       +./mk-all -u 2>&1 >/dev/null
        
        
 (DIR) diff --git a/mk-all b/mk-all
       @@ -1,5 +1,15 @@
        #!/bin/sh
        
       +doupdate=1
       +if [ "$1" = "-u" ];
       +then
       +        doupdate=0
       +fi
       +
        cat db/* categories/* | ./lawn-mower/lawn-mower.py
       -./lawn-update
       +
       +if [ $doupdate -eq 1 ];
       +then
       +        ./lawn-update
       +fi