the mkthumbpg script --------------------------------------------------------------------------------------------- a script to build 3 web pages: an ALL.html, an index.html and a tindex.html 1) ALL.html displays all images in series 2) index.html provides a "directory" listing and links to ALL and THUMBNAIL PAGE 3) tindex.html provides a page of thumbnails with links --------------------------------------------------------------------------------------------- -------------------- COMMENTS and notes -------------------- #!/bin/bash # copyright 2019 johnmeister.com # mkthumbpg # 18jan2019 - enhance using "convert" to create thumbnails for thumbnail page ### echo "convert -thumbnail 200 file.jpg file-T.jpg" # mkpgit - create index and ALL pages to fix bad web filters - and "t" to add thumbnails # 28 oct 2013 - luser http://somewebpage.net - updated 8 may 2015 # updated date in title to 2017 - 30 Dec 2016 - update 1jan2018 # updating 12 Sep 2018 - not saving IMG.html, updating missing.html # updated 2 Dec 2018 to include g7x and g3x # 12 Jan 2019 - updating to create index page, and ALL.html --------------------------------------------------------------------------------------------- ------------------- VARIABLES DEFINED ------------------- ################################################################# # mkpg - creates a page to display all images in a directory ################################################################# CAT=/usr/bin/cat CP=/usr/bin/cp DATE=`date | cut -c 5-11` ; export DATE # echo $DATE FDATE=`/bin/date +%d%b%y-%H%M` ; export FDATE # echo $FDATE GREP=/usr/bin/grep GREPV="/usr/bin/grep -v" LS=/usr/bin/ls LSF="/usr/bin/ls -F" MKDIR=/usr/bin/mkdir MV=/usr/bin/mv PERL=/usr/bin/perl RM=/usr/bin/rm SED=/usr/bin/sed SORT=/usr/bin/sort TITLE="`echo "$1 $2 $3 $4 $5 $6 $7 $8"`" ; export TITLE ; echo $TITLE UNIQU="/usr/bin/uniq -u" VI=/usr/bin/vi WCL="/usr/bin/wc -l" -------------------------------------------------------------------------------------------- ------------------- BACKUPS of FILES ------------------- ############################################## # create backup copies of ALL, Header, Readme and footer files ############################################## $MKDIR z 2>/dev/null $MV ALL.html z/ALL.html-`/bin/date +%Y-%m-%d-%Hh%Mm` 2>/dev/null $MV index.html z/index.html-`/bin/date +%Y-%m-%d-%Hh%Mm` 2>/dev/null $MV tindex.html z/tindex.html-`/bin/date +%Y-%m-%d-%Hh%Mm` 2>/dev/null $MV README.html z/README-`/bin/date +%Y-%m-%d-%Hh%Mm` 2>/dev/null $MV HEADER.html z/HEADER-`/bin/date +%Y-%m-%d-%Hh%Mm` 2>/dev/null $MV FOOTER.html z/FOOTER-`/bin/date +%Y-%m-%d-%Hh%Mm` 2>/dev/null ############################################## -------------------------------------------------------------------------------------------- ------------------- FRESH BASE FILES ------------------- $CP /web-base/luser/bin/README.html README.html $CP /web-base/luser/bin/HEADER.html HEADER.html -------------------------------------------------------------------------------------------- ------------------- TITLES ------------------- ############################################## echo "
photographs © 2019 |
" >> index.html
echo "
" >> tindex.html echo " " >> tindex.html $CAT LIMGT.html >> tindex.html echo " Additional Directories: " >> tindex.html $CAT DIRL.txt >> tindex.html echo " |
photographs © 2019 |