summaryrefslogtreecommitdiff
path: root/dists/source/build.sh
blob: 50b2a152ff79ce23399e858bd76cb86623c753a6 (plain)
  1. #!/bin/bash
  2. # Simple script to prepare for release
  3. if test -n "$1" # Arguments are presented. set up argument list and related
  4. then
  5. pgdoc="postgresql_autodoc -U $1 -d $2"
  6. else
  7. pgdoc="true";
  8. fi
  9. version="1.2.0-rc5";
  10. build_d="../release";
  11. if test -d blib; then
  12. rm -rf blib
  13. fi
  14. if test -d _build; then
  15. rm -rf _build
  16. fi
  17. if test -d $build_d/ledger-smb; then
  18. rm -rf $build_d/ledger-smb
  19. fi
  20. if test ! -d $build_d; then
  21. mkdir $build_d
  22. fi
  23. mkdir $build_d/ledger-smb
  24. cp -R * $build_d/ledger-smb
  25. cd $build_d/ledger-smb
  26. pwd
  27. find -name '*.svn' -exec rm -rf '{}' ';'
  28. rm ledger-smb.conf
  29. rm ledgersmb.conf
  30. cd doc/database
  31. $pg_doc
  32. cd ../../..
  33. tar -zcvf ledger-smb-$version.tar.gz ledger-smb