summaryrefslogtreecommitdiff
path: root/dists/source/build.sh
blob: 9bb5b5bb2b05377806f06d431c8cd4b83d4a5fee (plain)
  1. #!/bin/bash
  2. # Simple script to prepare for release
  3. version="1.3.0_milestone_1";
  4. build_d="../release";
  5. if test -d blib; then
  6. rm -rf blib
  7. fi
  8. if test -d _build; then
  9. rm -rf _build
  10. fi
  11. if test -d $build_d/ledger-smb; then
  12. rm -rf $build_d/ledger-smb
  13. fi
  14. if test ! -d $build_d; then
  15. mkdir $build_d
  16. fi
  17. mkdir $build_d/ledger-smb
  18. cp -R * $build_d/ledger-smb
  19. cd $build_d/ledger-smb
  20. pwd
  21. find . -name '*.svn' -exec rm -rf '{}' ';'
  22. rm ledger-smb.conf
  23. cd ..
  24. tar -zcvf ledger-smb-$version.tar.gz ledger-smb