summaryrefslogtreecommitdiff
path: root/dists/source/build.sh
blob: 09f473333832027de39889632922d8bd5e4e4053 (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.13";
  10. #rpmversion="1.2.6";
  11. build_d="../release";
  12. if test -d blib; then
  13. rm -rf blib
  14. fi
  15. if test -d _build; then
  16. rm -rf _build
  17. fi
  18. if test -d $build_d/ledgersmb; then
  19. rm -rf $build_d/ledgersmb
  20. fi
  21. if test ! -d $build_d; then
  22. mkdir $build_d
  23. fi
  24. mkdir $build_d/ledgersmb
  25. cp -R * $build_d/ledgersmb
  26. cd $build_d/ledgersmb
  27. pwd
  28. find . -name '*.svn' -exec rm -rf '{}' ';'
  29. find . -name '*.rej' -exec rm -rf '{}' ';'
  30. rm ledger-smb.conf
  31. rm ledgersmb.conf
  32. cd doc/database
  33. $pg_doc
  34. cd ../../..
  35. tar -zcvf ledgersmb-$version.tar.gz ledgersmb
  36. cp ledgersmb-$version.tar.gz ledgersmb-$rpmversion.tar.gz