Advertisement
shmaltorhbooks

Untitled

May 13th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. cwd=$(pwd)
  4.  
  5. if [ ! -d public ]; then
  6.     echo "Looks like it is not HUB root directory!"
  7.     exit 1;
  8. fi
  9.  
  10. if [ ! -d public/modules ]; then
  11.     mkdir public/modules
  12. fi
  13.  
  14. rm -rf public/modules/*
  15.  
  16.  
  17. for line in $(ls modules); do
  18.     echo "$cwd/modules/$line/public => $cwd/public/modules/$line"
  19.     if [ -d "$cwd/modules/$line/public" ]; then
  20.         ln -s "$cwd/modules/$line/public" "$cwd/public/modules/$line"
  21.     fi
  22. done
  23.  
  24. bower install;
  25. npm i;
  26. gulp template;
  27. gulp build;
  28. php console.php cache:clear;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement