summaryrefslogtreecommitdiff
path: root/dists/source/build.sh
blob: 9a7c5f948264f7acc20183cfdab129b58d359601 (plain)
  1. #!/bin/bash
  2. # Simple script to prepare for release
  3. version="1.2.0rc4";
  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. rm ledgersmb.conf
  24. cd ..
  25. tar -zcvf ledger-smb-$version.tar.gz ledger-smb