ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Validate External Links/validate_external_links.sh
(Generate patch)

Comparing Validate External Links/validate_external_links.sh (file contents):
Revision 1158 by iritscen, Sun Jun 13 20:50:43 2021 UTC vs.
Revision 1160 by iritscen, Sun Aug 15 14:20:21 2021 UTC

# Line 68 | Line 68 | declare -a NS_NAMES=("Media" "Special" "
68  
69   # These arrays tell the script which suffixes at the ends of URLs represent files and which are pages.
70   # This determines whether the script tries to take a screenshot of the URL or just gets its HTTP code.
71 < declare -a HTTP_FILES=(3ds 7z avi BINA blend bsl cpp csv dae dll dmg doc east exe fbx first63 flv gamedata gif jpg last32 log m4a mhm mov mp3 mp4 oni ONWC pdf png py rar tga TRMA txt vbs wav wmv xaf xml zip)
72 < declare -a HTTP_TLDS_AND_PAGES=(action ars asp aspx cfm cgi com css de do full htm html it js jsp net org pgi php php3 phtml pl ru shtml stm uk x)
71 > declare -a HTTP_FILES=(3ds 7z avi BINA blend bsl cpp csv dae dll dmg doc east exe fbx first63 flv gamedata gif jpg last32 log m4a mhm mov mp3 mp4 oni ONWC pdf png psd py rar tga TRMA txt vbs wav wmv xaf xcf xml zip)
72 > declare -a HTTP_TLDS_AND_PAGES=(abstract action ars asp aspx cfm cgi com css de do full htm html it js jsp net org pgi php php3 phtml pl ru shtml stm uk x)
73  
74   # These arrays tells us which HTTP response codes are OK (good), which are RD (redirections), and which
75   # are NG (no good). Pages that return OK codes will be screenshotted. Remember to update http_codes.txt
# Line 904 | Line 904 | for LINE in `cat "$LINKS_FILE"`; do
904     # If this suffix escaped identification as either a file, page or TLD, inform the user
905     STR_TYPE=""
906     if [ $IS_FILE -eq -1 ]; then
907 <      valPrint trs "Skipping URL '$URL' (found on page '$LOCAL_PAGE_PATH') because I encountered the unknown URL ending '$POST_DOT'. Please add this ending to the appropriate array in this script, HTTP_FILES or HTTP_TLDS_AND_PAGES."
907 >      valPrint trs "Skipping URL '$URL' (found on page '$LOCAL_PAGE_PATH') because I encountered the unknown URL suffix '$POST_DOT'. Please add this suffix to the appropriate array in this script, HTTP_FILES or HTTP_TLDS_AND_PAGES."
908        let SKIP_UNK_SUFFIX+=1
909        continue
910     elif [ $IS_FILE -eq 1 ]; then

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)