Advertisement
chrissharp123

Untitled

May 12th, 2023 (edited)
742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. SOURCE_DIR="/home/opensrf"
  4. EG_DIRNAME="Evergreen"
  5. INSTALL_PREFIX="/openils"
  6. OS_VER="$(lsb_release -si | tr [:upper:] [:lower:])-$(lsb_release -sc | tr [:upper:] [:lower:])"
  7.  
  8. # delete system-level npm stuff
  9. cd /usr/local/bin/
  10. rm ng node npm npx
  11. cd ../lib/
  12. rm -rf node_modules/
  13.  
  14. # delete node_modules everywhere
  15. rm -rf $INSTALL_PREFIX/var/web/js/ui/default/staff/node_modules
  16. rm -rf $SOURCE_DIR/$EG_DIRNAME/Open-ILS/web/js/ui/default/staff/node_modules
  17. rm -rf $SOURCE_DIR/$EG_DIRNAME/Open-ILS/src/eg2/node_modules
  18. rm -rf $SOURCE_DIR/$EG_DIRNAME/Open-ILS/web/opac/deps/node_modules
  19.  
  20. cd $SOURCE_DIR && make -f $SOURCE_DIR/$EG_DIRNAME/Open-ILS/src/extras/Makefile.install $OS_VER-developer
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement