build_frontends 642 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env bash
  2. set -e
  3. set -u
  4. set -o pipefail
  5. rebuild_med_appointments() {
  6. cd lib/med-appointments/ \
  7. && make init \
  8. && make rebuild \
  9. && rsync -av --delete ./output/ \
  10. ../../src/med_enterprise_dash/static/med-appointments/ \
  11. && make clean
  12. }
  13. rebuild_med_data_entry() {
  14. cd lib/med-data-entry/ \
  15. && make init \
  16. && make rebuild \
  17. && rsync -av --delete ./output/ \
  18. ../../src/med_enterprise_dash/static/med-data-entry/ \
  19. && make clean
  20. }
  21. rebuild_frontends_main() {
  22. local current_dir=$(pwd)
  23. rebuild_med_appointments
  24. cd ${current_dir}
  25. rebuild_med_data_entry
  26. cd ${current_dir}
  27. }
  28. rebuild_frontends_main