#!/bin/sh # Install (or remove) the extra live-map voices into a CoreScope public/ dir. # # ./install.sh install or update # ./install.sh --uninstall remove # # Copies voices/*.js into the directory and adds their \n' "$f" done) awk -v a="$ANCHOR" -v b="$BEGIN_MARK" -v e="$END_MARK" ' { print } !done && index($0, a) { print " " b; print ENVIRON["TAGS"]; print " " e; done = 1 } ' "$TMP" > "$INDEX" rm -f "$TMP" echo "Installed corescope-voices into $PUBLIC. Restart CoreScope so it re-reads index.html."