build_static.sh 1.2 KB

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # http://httrack.kauler.com/help/User-defined_structure
  3. # httrack http://dev.clameurs-lawebserie.fr -O ./web -N "%h%p/%n/index%[page].%t" --near --mirror-wizard --quiet --do-not-log -%v2 -X -p7 --robots=0 --footer '' --sockets=99 −−max−rate=99999999 --disable-security-limits −−keep−alive
  4. httrack http://dev.clameurs-lawebserie.fr --path ./web --mirror-wizard --update --max-rate=9999999999999 --sockets=99 --near -N "%h%p/%n/index%[page].%t" --robots=0 --keep-alive --footer '' --display --do-not-log --quiet --disable-security-limits -p7 -K3
  5. # todo get webfonts
  6. # * done get ajax http://static.clameurs-lawebserie.fr/clameursmod/getemvidfield?src=https://youtu.be/KZd8E2c7BS8
  7. # --continue
  8. # httrack http://dev.clameurs-lawebserie.fr -O ./web -N "%h%p/%n%[page].%t" --near -WqQ%v --robots=0 --footer ''
  9. # remove the ajax block from home with sed
  10. # move the index @the right place
  11. # mv web/dev.clameurs-lawebserie.fr/index/index.html web/dev.clameurs-lawebserie.fr/index.html
  12. # as the index file moved, replace ../../ by ../ every-were
  13. # find . -type f -name "*.html" -print0 | xargs -0 sed -i 's/\.\.\/\.\.\//\.\.\//g'
  14. # grep -rlZ '\.\.\/\.\.\/' . | xargs -0 sed -i.bak 's/\.\.\/\.\.\//\.\.\//g'