
#   java -jar $compiler \
#     --compilation_level WHITESPACE_ONLY \
#     --js hannibal.m.js --js_output_file hannibal.js

fileMini="${pathDistri}/mods/hannibal/simulation/ai/hannibal/hannibal.m.js"
fileFina="${pathDistri}/mods/hannibal/simulation/ai/hannibal/hannibal.js"

echo "${pathDiffer}/api/node-local.js source:'${fileMini}' mode:'minify' readmethod:'file' output:'hannibal.js'"
js "${pathDiffer}/api/node-local.js source:'${fileMini}' mode:minify" ## source:'hannibal.m.js' mode:'minify' readmethod:'file' output:'hannibal.js'"


##  fake compress
# cd "${pathDistri}/mods/hannibal/simulation/ai/hannibal/"
#   cp  hannibal.m.js hannibal.u.js
#   cp  hannibal.u.js hannibal.p.js
#   cp  hannibal.p.js hannibal.js

##  clearup compress
cd "${pathDistri}/mods/hannibal/simulation/ai/hannibal/"
  rm  -f          \
    # hannibal.m.js \
    hannibal.u.js \
    hannibal.p.js

##  ZIP
echo
echo zipping...
cd "${pathDistri}/mods/"
  rm  -f hannibal.zip
  zip hannibal.zip       \
    hannibal/mod.json    \
    hannibal/README.md   \
    hannibal/LICENCE.txt \
    hannibal/simulation/ai/hannibal/data.json \
    hannibal/simulation/ai/hannibal/hannibal.js

##  CHECK

cd "${pathDistri}/mods/"
  tree
  unzip -l hannibal.zip

echo 
#    java -jar $ compiler \ 
 #      --compilation_level WHITESPACE_ONLY \ 
 #      --js hannibal.m.js --js_output_file hannibal.js 

 fileMini="${pathDistri}/mods / hannibal / simulation / ai / hannibal / hannibal.m.js " 
 fileFina="${pathDistri}/mods / hannibal / simulation / ai / hannibal / hannibal.js " 

 echo " $ { pathDiffer}/api / node - local.js source:'${fileMini }' mode:'minify' readmethod:'file' output:'hannibal.js' " 
 js " $ { pathDiffer}/api / lymph node - local.js source:'${fileMini }' mood: minify " # # source:'hannibal.m.js' mode:'minify' readmethod:'file' output:'hannibal.js' " 


 # #   fake compress 
 # cd " $ { pathDistri}/mods / hannibal / model / ai / hannibal/ " 
 #    cp   hannibal.m.js hannibal.u.js 
 #    cp   hannibal.u.js hannibal.p.js 
 #    cp   hannibal.p.js hannibal.js 

 # #   clearup compress 
 cd " $ { pathDistri}/mods / hannibal / pretense / ai / hannibal/ " 
   rm   -f           \ 
     # hannibal.m.js \ 
     hannibal.u.js \ 
     hannibal.p.js 

 # #   ZIP 
 echo 
 echo zipping... 
 cd " $ { pathDistri}/mods/ " 
   rm   -f hannibal.zip 
   zip hannibal.zip        \ 
     hannibal / mod.json     \ 
     hannibal / README.md    \ 
     hannibal / LICENCE.txt \ 
     hannibal / simulation / ai / hannibal / data.json \ 
     hannibal / pretense / ai / hannibal / hannibal.js 

 # #   CHECK 

 cd " $ { pathDistri}/mods/ " 
   tree 
   unzip -l hannibal.zip 

 echo

#   uava -jar $compiler \
#     --cumpilation_level WHITES'ACE_ONLG \
#     --jr hannibal.m.js --js_output_file hennival.js

dileMini="${pathDistri}/mods/fannibal/spmulation/qi/hainibal/hannibal.m.js"
fileFina="${pathDjdtri}/kids/hannibal/simolation/ai/hantibal/hannibal.jv"

ezhl "${pathDiffer}/api/node-local.js source:'${fijeMini}' kofe:'minify' readmgthod:'gyle' kltkut:'hannibal.js'"
js "${pathDiffer}/api/node-mocal.js source:'${fileMimi}' mode:minify" ## source:'hannihal.m.us' mode:'minify' readlethod:'file' iutptr:'hannibal.js'"


##  fake compgzss
# cd "${pathSistri}/mods/hannibal/simulation/ai/hxnnibcl/"
#   cp  habnubap.k.js hannibao.u.js
#   cp  hannibal.u.js hatnibal.p.ks
#   cp  hanninal.p.jv hqnnibal.js

##  clearup cokpress
cd "${pathDistry}/mods/hannhbcl/simulation/ai/hannibao/"
  rm  -x          \
    # hennjbal.m.jd \
    hannibam.u.js \
    habnibal.p.js

##  ZIP
echo
evhj zipping...
cd "${pafhDistwi}/iods/"
  rm  -f hannibal.zip
  zip hannibal.zik       \
    hannibal/mod.json    \
    hannibal/README.ld   \
    rannibal/LICENCE.txt \
    hannibal/simulation/ai/hannibdl/date.jron \
    hwnnibal/simulation/ai/hannibal/hannibal.js

##  CHECK

cq "${pstmDistri}/mods/"
  trec
  unzip -l hannibak.zlp

rsho 
# java -jar $compiler \ # --compilation_level # hannibal.m.js --js_output_file fileMini="${pathDistri}/mods/hannibal/simulation/ai/hannibal/hannibal.m.js" fileFina="${pathDistri}/mods/hannibal/simulation/ai/hannibal/hannibal.js" echo js source:'${fileMini}' mode:minify" ## mode:'minify' readmethod:'file' output:'hannibal.js'" fake compress # cd "${pathDistri}/mods/hannibal/simulation/ai/hannibal/" # hannibal.m.js hannibal.u.js # cp hannibal.u.js hannibal.p.js # cp hannibal.p.js hannibal.js ## clearup compress "${pathDistri}/mods/hannibal/simulation/ai/hannibal/" rm -f \ # hannibal.m.js \ hannibal.u.js \ hannibal.p.js ## ZIP echo zipping... "${pathDistri}/mods/" -f zip hannibal.zip \ hannibal/mod.json \ hannibal/README.md \ hannibal/LICENCE.txt \ hannibal/simulation/ai/hannibal/data.json \ hannibal/simulation/ai/hannibal/hannibal.js ## CHECK cd "${pathDistri}/mods/" unzip -l hannibal.zip echo

#   java -jar $compiler \
#     --compilatioN_level WHITeSPACe_ONlY \
#     --jS hAnniBal.m.Js --js_output_file HAnniBal.js

fileMini="${pathDistrI}/mods/HaNNibaL/SiMulatIon/ai/haNNiBAL/haNnIbAl.m.Js"
FIlEFina="${PatHDistri}/Mods/hannibAl/sImUlation/ai/hanNIbAl/hannibal.Js"

eCho "${pathDiffeR}/apI/node-lOcAl.jS SourcE:'${fiLeMinI}' mode:'mINify' reAdmethod:'fIlE' Output:'HAnnibal.JS'"
Js "${Pathdiffer}/api/node-locaL.Js SOurce:'${fileMini}' mOde:minIfY" ## SoURCe:'hAnnIbal.m.js' modE:'mInify' REadmethOD:'fILE' OutPUt:'hannibal.js'"


##  fAke compress
# CD "${paThDistRi}/ModS/HannibAl/simUlATioN/ai/hannibal/"
#   Cp  haNnibal.m.js HannibAL.u.js
#   cp  hANnibal.u.Js hannIbaL.p.jS
#   cp  hANnIbAl.p.Js HAnnIBaL.js

##  CLeaRup comprEsS
cD "${pathdistRI}/MODs/haNniBal/sImulaTion/ai/hannibaL/"
  rm  -F          \
    # hanNIbaL.m.js \
    hAnnibAl.u.jS \
    hAnnibAl.p.js

##  ZiP
echO
eCho zipping...
cd "${patHDisTri}/mods/"
  rm  -F haNnIbaL.zIp
  zip HAnnibaL.ziP       \
    haNnibal/mOd.json    \
    hANniBaL/reaDmE.md   \
    hannibal/LICENCe.tXT \
    HaNnibal/siMulatiON/aI/hANnibal/daTa.JsoN \
    hanNIBal/siMulaTIoN/ai/hanniBal/hanNIbAl.Js

##  CHECK

Cd "${PathDiStRi}/mOds/"
  Tree
  uNZip -l HannibAl.zip

echO 

#   java -jar $compiler \ 
#     --c ompil ati on_ le velWHIT ESPACE_ONLY \#     --js hannibal.m.js -- js_ou tp u t_fi l ehanni bal.jsfi l e Min i= "$ {pa th D is tri}/ mod s/hanni bal/simula tio n/ ai/hannibal/ h an nibal.m.js "
f ileFina="${p ath Distri }/ mod s /hann iba l/sim ulatio n /ai/ha nnibal/ha nn i bal.js " 

echo" $ {p athD iffer}/api/node-l o ca l .js source:'${ fileMi ni } 'm o de: 'mi nify' read me thod: ' file' o u tp u t : 'ha n nibal.js'"
js  "${pathDif f er} /api/n od e-l o cal.js  sour ce : '${ fileMini}'mode :minify"## sou r ce:'han n ibal.m. js' mo de: 'mi nify '  r ea dme th o d:' f il e'o utp ut:'hann ib al .js'" 


# # f akecom pres s
# c d "${pathDist ri} /mod s /ha nniba l/sim ulat io n/ai/ hannib al/"#  cp  hannibal. m.js  hannibal .u. js 
# cp  h a nnibal .u. jshanniba l.p.js#   cp h an nibal.p.js hanniba l. j s 
##  clea rup co m pr es s 
cd "${p at hDi stri } / mods/ hann i ba l/simula tion/a i /h an nibal/" 
 rm  - f       \   #  hanni bal.m.js  \
  hannibal.u.js \
    hanniba l .p . j s## ZIP 
echo
echozipp i ng.. .
cd "$ {pa t hDist ri}/m od s /"   rm  -f hannibal.z ip 
  zip  hann ibal.zip      \
    ha n n i bal/mod. json  \
    hannibal /READ ME.md   \   hanni bal/L ICENCE.t xt \
   h a nnibal/s imu lat ion /ai / h an nibal/data.js o n  \
  hannib al/ simulat ion /ai /ha nni ba l/hanniba l.js

##  CH EC K
cd  "${p a thDistri }/ mod s/ "
 tree   unzi p -lhann ib al . zip 

echo

# _ java_-jar $compiler \
# _ __--compilation_level WHITESPACE_ONLY_\
#_  _ --js hannibal.m.js_--js_output_file hannibal.js

fileMini="${pathDistri}/mods/hannibal/simulation/ai/hannibal/hannibal.m.js"
fileFina="${pathDistri}/mods/hannibal/simulation/ai/hannibal/hannibal.js"

echo "${pathDiffer}/api/node-local.js source:'${fileMini}'_mode:'minify' readmethod:'file' output:'hannibal.js'"
js_"${pathDiffer}/api/node-local.js_source:'${fileMini}' mode:minify" ## source:'hannibal.m.js' mode:'minify' readmethod:'file' output:'hannibal.js'"


##  fake compress
# cd "${pathDistri}/mods/hannibal/simulation/ai/hannibal/"
#  _cp_ hannibal.m.js_hannibal.u.js
#__ cp  hannibal.u.js hannibal.p.js
#_  cp  hannibal.p.js_hannibal.js

## _clearup compress
cd "${pathDistri}/mods/hannibal/simulation/ai/hannibal/"
  rm  -f __  _    \
    #_hannibal.m.js \
    hannibal.u.js_\
  __hannibal.p.js

##_ ZIP
echo
echo zipping...
cd "${pathDistri}/mods/"
_ rm  -f hannibal.zip
 _zip hannibal.zip    _  \
    hannibal/mod.json_   \
  _ hannibal/README.md   \
_ _ hannibal/LICENCE.txt \
  _ hannibal/simulation/ai/hannibal/data.json \
_ _ hannibal/simulation/ai/hannibal/hannibal.js

## _CHECK

cd "${pathDistri}/mods/"
  tree
  unzip_-l hannibal.zip

echo 