summaryrefslogtreecommitdiff
path: root/dists/source/build.sh
blob: e0ea3334ad1f8be6f2eeb45c902255a0cc5128d8 (plain)
  1. #!/bin/bash
  2. # Simple script to prepare for release
  3. version="1.2.0rc1";
  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