You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

package.sh 939B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. physicalCpuCount=$([[ $(uname) = 'Darwin' ]] &&
  3. sysctl -n hw.physicalcpu_max ||
  4. lscpu -p | egrep -v '^#' | sort -u -t, -k 2,4 | wc -l)
  5. mkdir netrunner-$(date +%F)
  6. cd netrunner-$(date +%F)
  7. cp ../*.dylib .
  8. # this now has the ttfs and pnm
  9. cp -r ../../../res .
  10. rm res/.DS_Store
  11. cp ../../../ca-bundle.crt .
  12. cp ../../../browser.ntrml .
  13. cd ../../../
  14. make -j$physicalCpuCount
  15. cd reltools/darwin/netrunner-$(date +%F)
  16. cp ../../../netrunner .
  17. install_name_tool -change /usr/local/lib/libGLEW.2.0.0.dylib libGLEW.2.0.0.dylib netrunner
  18. install_name_tool -change /usr/local/lib/libfreetype.6.dylib libfreetype.6.dylib netrunner
  19. install_name_tool -change /usr/local/lib/libharfbuzz.0.dylib libharfbuzz.0.dylib netrunner
  20. otool -L netrunner
  21. cd ..
  22. zip -r -X netrunner-$(date +%F)-darwin.zip netrunner-$(date +%F)
  23. rm -fr netrunner-$(date +%F)
  24. # https://gitgud.io/snippets/29