Copyright 2019 - John Meister - http://johnmeister.com and http://linuxmeister.net ################################################################# #!/bin/bash ### # 2019-Nov-14 thumb - copied mkthumbpg to thumb to add .httaccess and use THUMB.html instead of index.html ### 12 Jan 2019 - updating to create index page, and ALL.html ### 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 - john http://johnmeister.com - 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 ################################################################# # 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 $9"`" ; export TITLE ; echo $TITLE UNIQU="/usr/bin/uniq -u" VI=/usr/bin/vi WCL="/usr/bin/wc -l" ############################################## # 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 THUMB.html z/THUMB.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 ############################################## $CP /home/luser/PAGES/README.html README.html $CP /home/luser/PAGES/HEADER.html HEADER.html ############################################## echo "
fotomeister © 2019 |
" >> index.html
echo "
" >> tindex.html echo "BACK one level " >> tindex.html echo " " >> tindex.html $CAT LIMGT.html >> tindex.html echo " Additional Directories: " >> tindex.html $CAT DIRL.txt >> tindex.html echo " |
fotomeister © 2019 |