code

The code used to create this site.
git clone https://code.literati.org/code.git
Log | Files | Refs | README | LICENSE

gen (289B)


      1 #!/bin/sh
      2 set -e
      3 for repo in "$@"
      4 do
      5     repo="$(realpath -se "$repo")"
      6     outdir="$(dirname "$repo")/$(basename "$repo" .git)"
      7     mkdir "$outdir" 2>/dev/null || true
      8     cd "$outdir"
      9     echo "Indexing $repo in $outdir"
     10     stagit "$repo"
     11     cd ..
     12 done
     13 stagit-index *.git > index.html