#!/bin/zsh # Inferencium - Website - Test - Webpages # Copyright 2024 Jake Winters # Version: 0.1.0 # SPDX-License-Identifier: BSD-3-Clause # Location root=".." # Website root directory blog="../blog" # Website blog directory clog="../changelog" # Changelog directory doc="../documentation" # Website documentation directory # Formatting bold="\033[1m" # Bold green="\033[0;32;1m" # Green + Bold red="\033[0;31;1m" # Red + Bold nof="\033[0m" # None # Check for existence of webpages echo "${bold}Checking for existence of webpages...${nof}" echo "" echo "${bold}Root${nof}" if [ -f $root/about.xhtml ]; then echo "about.xhtml ${green}${bold}OK${nof}" else echo "about.xhtml ${red}FAIL${nof}" fi if [ -f $root/ads.txt ]; then echo "ads.txt ${green}OK${nof}" else echo "ads.txt ${red}FAIL${nof}" fi if [ -f $root/app-ads.txt ]; then echo "app-ads.txt ${green}OK${nof}" else echo "app-ads.txt ${red}FAIL${nof}" fi if [ -f $root/blog.xhtml ]; then echo "blog.xhtml ${green}OK${nof}" else echo "blog.xhtml ${red}FAIL${nof}" fi if [ -f $root/changelog.xhtml ]; then echo "changelog.xhtml ${green}OK${nof}" else echo "changelog.xhtml ${red}FAIL${nof}" fi if [ -f $root/contact.xhtml ]; then echo "contact.xhtml ${green}OK${nof}" else echo "contact.xhtml ${red}FAIL${nof}" fi if [ -f $root/directory.xhtml ]; then echo "directory.xhtml ${green}OK${nof}" else echo "directory.xhtml ${red}FAIL${nof}" fi if [ -f $root/documentation.xhtml ]; then echo "documentation.xhtml ${green}OK${nof}" else echo "documentation.xhtml ${red}FAIL${nof}" fi if [ -f $root/humans.txt ]; then echo "humans.txt ${green}OK${nof}" else echo "humans.txt ${red}FAIL${nof}" fi if [ -f $root/index.xhtml ]; then echo "index.xhtml ${green}OK${nof}" else echo "index.xhtml ${red}FAIL${nof}" fi if [ -f $root/key.xhtml ]; then echo "key.xhtml ${green}OK${nof}" else echo "key.xhtml ${red}FAIL${nof}" fi if [ -f $root/music.xhtml ]; then echo "music.xhtml ${green}OK${nof}" else echo "music.xhtml ${red}FAIL${nof}" fi if [ -f $root/news.xhtml ]; then echo "news.xhtml ${green}OK${nof}" else echo "news.xhtml ${red}FAIL${nof}" fi if [ -f $root/robots.txt ]; then echo "robots.txt ${green}OK${nof}" else echo "robots.txt ${red}FAIL${nof}" fi if [ -f $root/sitemap.xhtml ]; then echo "sitemap.xhtml ${green}OK${nof}" else echo "sitemap.xhtml ${red}FAIL${nof}" fi if [ -f $root/sitemap.xml ]; then echo "sitemap.xml ${green}OK${nof}" else echo "sitemap.xml ${red}FAIL${nof}" fi if [ -f $root/source.xhtml ]; then echo "source.xhtml ${green}OK${nof}" else echo "source.xhtml ${red}FAIL${nof}" fi echo "" echo "${bold}Blog${nof}" if [ -f $blog/foss_is_working_against_itself.xhtml ]; then echo "foss_is_working_against_itself.xhtml ${green}OK${nof}" else echo "foss_is_working_against_itself.xhtml ${red}FAIL${nof}" fi if [ -f $blog/systemd_insecurity.xhtml ]; then echo "systemd_insecurity.xhtml ${green}OK${nof}" else echo "systemd_insecurity.xhtml ${red}FAIL${nof}" fi if [ -f $blog/the_chromium_monopoly.xhtml ]; then echo "the_chromium_monopoly.xhtml ${green}OK${nof}" else echo "the_chromium_monopoly.xhtml ${red}FAIL${nof}" fi if [ -f $blog/untrusted_the_issue_with_decentralisation.xhtml ]; then echo "untrusted_the_issue_with_decentralisation.xhtml ${green}OK${nof}" else echo "untrusted_the_issue_with_decentralisation.xhtml ${red}FAIL${nof}" fi echo "" echo "${bold}Changelog${nof}" if [ -f $clog/firmware-aa000-0.xhtml ]; then echo "firmware-aa000-0.xhtml ${green}OK${nof}" else echo "firmware-aa000-0.xhtml ${red}FAIL${nof}" fi if [ -f $clog/firmware-xa000-0.xhtml ]; then echo "firmware-xa000-0.xhtml ${green}OK${nof}" else echo "firmware-xa000-0.xhtml ${red}FAIL${nof}" fi if [ -f $clog/firmware-xb000-0.xhtml ]; then echo "firmware-xb000-0.xhtml ${green}OK${nof}" else echo "firmware-xb000-0.xhtml ${red}FAIL${nof}" fi echo "" echo "${bold}Documentation${nof}" if [ -f $doc/hardened_malloc.xhtml ]; then echo "hardened_malloc.xhtml ${green}OK${nof}" else echo "hardened_malloc.xhtml ${red}FAIL${nof}" fi if [ -f $doc/openssl_selfsigned_certificate_chain.xhtml ]; then echo "openssl_selfsigned_certificate_chain.xhtml ${green}OK${nof}" else echo "openssl_selfsigned_certificate_chain.xhtml ${red}FAIL${nof}" fi