build.sh 888 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. # Build script for dojox.mobile
  3. if [ $# -eq 0 ]; then
  4. echo 'Usage: build separate|single [webkit]'
  5. echo ' separate Create mobile.js that includes only dojox.mobile'
  6. echo ' single Create a single dojo.js layer that includes dojox.mobile'
  7. echo ' webkit Enable webkitMobile=true option (Loses PC browser support)'
  8. exit 1
  9. fi
  10. #optimize=shrinksafe
  11. optimize=closure
  12. profile=mobile
  13. dir=release-mobile-separate
  14. webkit=
  15. #standalone=standaloneScrollable=true
  16. if [ "$1" == "single" ]; then
  17. profile=mobile-all
  18. fi
  19. if [ "$1" == "single" ]; then
  20. dir=release-mobile-single
  21. fi
  22. shift 1
  23. if [ "$1" == "webkit" ]; then
  24. webkit=webkitMobile=true
  25. shift 1
  26. fi
  27. cd ../../../util/buildscripts
  28. ./build.sh profile=$profile action=release optimize=$optimize layerOptimize=$optimize cssOptimize=comments releaseDir=../../$dir/ $webkit $standalone $*
  29. cd ../../dojox/mobile/build