--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/docetc/docimgs
py3 $C/shrinkpix/shrinkpix.py linux [-listonly]
py3 $C/shrinkpix/collect-unshrunk-images.py linux ../../_private_/shrinkpix-originals-linux [-listonly]
--and do same for macosx, windows--

# originals in _private_/shrinkpix-originals-*/_shrinkpix-all-originals

to restore:
cd $C/APP/_private_
py3 $C/shrinkpix/restore-unshrunk-images.py shrinkpix-originals-linux/_shrinkpix-all-originals [-listonly]
rsync -avh shrinkpix-originals-linux/_shrinkpix-all-originals ../docetc/docimgs/linux/
rm -rf shrinkpix-originals-linux/_shrinkpix-all-originals
--and do same for macosx, windows--

----UPDATE FOR ONLINE VIEWING ONLY----
[in Code/APP]
rethumbspage docetc/docimgs/{macosx, windows, linux} per #0 below
	(all 'docetc/docimgs/' = 'screenshots/' for pygadgets)
cp docimgs/ to deleted
	Websites/Programs/..Complete../APP-products/unzipped/docetc/docimgs

[in Websites/Programs/../APP-products/]
uncomment analytics script in 4 index.html files
	1 root index.html + 3 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-products/unzipped/docetc
	rm -rf docimgs
	unzip -d . docimgs.zip
	rm docimgs.zip
	exit
	rm docimgs.zip
rm zip at site and local (per cmds above)

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

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

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

** 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/

