GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — angular.io/scripts/check-docs.sh at master · angular/angular.io
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Expand file tree/ Copy pathcheck-docs.shMore file actions executable file ·56 lines (44 loc) · 1.41 KB / Copy pathcheck-docs.shFile metadata and controlsexecutable file ·56 lines (44 loc) · 1.41 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 #!/usr/bin/env bash set -e -o pipefail [[ -z "$NGIO_ENV_DEFS" ]] && . ./scripts/env-set.sh > /dev/null if [[ "x$1" == "x-v" ]]; then VERBOSE=1; shift; fi SITE=./www CHECK_FOR=bad-code-excerpt LOGFILE_PREFIX=$CHECK_FOR-log LOGFILE_FULL=$TMP/$LOGFILE_PREFIX-full.txt LOGFILE=$TMP/$LOGFILE_PREFIX.txt SKIPFILE_BASE=$CHECK_FOR-skip-patterns.txt SKIPFILE_SRC=./scripts/config/$SKIPFILE_BASE SKIPFILE=$TMP/$SKIPFILE_BASE if [[ ! -d $SITE ]]; then echo "Missing site folder $SITE" exit 1; fi travis_fold start $CHECK_FOR echo "Searching site for HTML files containing bad code excerpts (BAD FILENAME)." echo if [[ -n "$VERBOSE" ]]; then travis_fold start $CHECK_FOR-details echo "Full file list with grep details:" find $SITE -type f -name "*.html" -exec grep -Hne "BAD FILENAME" {} \; | tee $LOGFILE_FULL travis_fold end $CHECK_FOR-details echo else echo "Full file list:" find $SITE -type f -name "*.html" -exec grep -le "BAD FILENAME" {} \; | tee $LOGFILE_FULL fi echo echo "Skip patterns for paths of files known to have issues ($SKIPFILE_SRC):" perl -pe 's/(\s+|\s*#.*)$/\n/g' $SKIPFILE_SRC | \ # Remove blank lines \ grep '.' > $SKIPFILE cat $SKIPFILE echo echo "File list excluding those matching skip patterns:" grep -v -E -f $SKIPFILE $LOGFILE_FULL | tee $LOGFILE || true if [[ ! -s $LOGFILE ]]; then echo "No matches, all is good!" travis_fold end $CHECK_FOR else exit 1; fi |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |