0install.sh 502 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # Script to create 0install archives
  3. # Get and set compilation settings
  4. ./configure --disable-debug --disable-docs --disable-profile --disable-tests > BUILD_INFO.txt
  5. # First compile
  6. make
  7. # Copy in dist
  8. cp ./_build/src/oclaunch.native ./dist/oclaunch
  9. # Move BUILD_INFO
  10. mv BUILD_INFO.txt ./dist/
  11. cd dist
  12. # Archive name
  13. name=oclaunch-v$(cat ../VERSION)
  14. mkdir $name
  15. # Put executable in it
  16. mv oclaunch BUILD_INFO.txt $name
  17. # XXX Debug
  18. tree
  19. # Create archive
  20. tar -cvaf $name.tar.lzma $name