--NEW/AUTO--
	bash _publish.sh

--PRIOR/MANUAL--

FOR ALL APP in APPS {mergeall, frigcall, pyedit, pymailgi, pygadgets, tagpix}
(not thumbspage: has own build scheme/details)

--------
HOW => imgs only 
(see also separate mergeall-android-scripts package here; it has it's own HOW+images)

----
shrink images (if needed)
dont shrink entire docimgs tree: may have doc icon pngover size cutoff

to shrink:
cd $C/APP
py3 $C/shrinkpix/shrinkpix.py screenshots [-listonly]
py3 $C/shrinkpix/collect-unshrunk-images.py screenshots _private [-listonly]
--same for macosx, windows--

# originals in _private_/_shrinkpix-all-originals

to restore:
cd $C/APP
py3 $C/shrinkpix/restore-unshrunk-images.py _private/_shrinkpix-all-originals [-listonly]
rsync -avh _private/_shrinkpix-all-originals/ screenshots/
rm -rf _private/_shrinkpix-all-originals
--same for macosx, windows--

----UPLOAD FOR ONLINE VIEWS ONLY--
[in Code/APP]
rethumbspage screenshots per #0 below
	(all 'docetc/docimgs/' = 'screenshots/' for pygadgets)
cp screenshots/ to deleted
	Websites/Programs/..Complete../APP/screenshots

[in Websites/Programs/../APP/]
add analytics script in 1 index.html file [#2 below]
	1 root index.html + 0 platform index.html
_PUBLISH to UNION
	adds ip-anon line to all index.html ga for zip+upload
zip docimgs/ or screenshots/ in UNION per #1 below
rm same folder at site, upload to parent, unzip there in place to recreate folder
  	(filezilla)
  	$SSH
  	cd htdocs/APP
  	rm -rf screenshots
  	unzip -d . screenshots.zip
  	rm screenshots.zip
  	exit
  	rm screenshots.zip
rm zip at site and local (via cmds above)

--
#0
~/MY-STUFF/Code/APP$ py3 ~/MY-STUFF/Code/thumbspage/thumbspage.py screenshots
Clean thumbs folder [y or n] (enter=y)? 
Thumbs per row [int] (enter=4)? 3
Thumb max size [x, y] (enter=(100, 100))? 
Use image-viewer pages [y or n] (enter=y)? 

--
#1
~/MY-STUFF/Websites/UNION/APP $ py3 ~/MY-STUFF/Code/ziptools/link/zip-create.py screenshots.zip screenshots -skipcruft

--
#2
<!--add analytics js in online version only-->
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-52579036-1', 'auto');
  ga('send', 'pageview');
</script>

--------
HOW => full src pkg:

--SEE ../_private/_HOW.txt--

The rest is mergeall's notes...

** CAUTION: must rm mergeall-android-scripts* from mergeall zips in build*/ **

[in Code/?]
add ip-anon line to .htaccess
rethumbspage images/{macos, windows, linux}
rebuild src-pkg.zip (py3 _build.py)
copy src-pkg.zip to Websites/Programs/../Complete/APP-products/

[in Websites/Programs/../APP-products/]
unzip copied .zip, rename result to unzipped/
enable analytics in unzipped/'s UG.html
in uz/, add analytics in 4 images index.html: 1 root, 3 tp folders
_PUBLISH

[on site, in cpanel]
from local UNION, upload src-pkg.zip to site's APP-products/
delete APP-products/unzipped
unzip src-pkg.zip in APP-products
rename result to unzipped/
upload UG and 4 image indexes with analytics to unzipped/

