/[projects]/misc/xoa-installer/xoa-installer.sh
ViewVC logotype

Diff of /misc/xoa-installer/xoa-installer.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2958 by torben, Mon Feb 29 09:43:57 2016 UTC revision 2961 by torben, Mon Feb 29 10:05:45 2016 UTC
# Line 49  if [ ! -x "/usr/bin/curl" ] ; then Line 49  if [ ! -x "/usr/bin/curl" ] ; then
49          apt-get install curl || exit          apt-get install curl || exit
50  fi  fi
51    
52    if [ ! -x "/usr/bin/gcc" ] ; then
53            echo "installing build-essential"
54            apt-get install  build-essential || exit
55    fi
56            
57    
58  if [ ! -x "/usr/local/bin/n" ] ; then  if [ ! -x "/usr/local/bin/n" ] ; then
59          echo "installing node.js bootstrap"          echo "installing node.js bootstrap"
60          curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n || exit          curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n || exit
# Line 60  if [ ! -x "/usr/local/bin/node" ] ; then Line 66  if [ ! -x "/usr/local/bin/node" ] ; then
66          n stable || exit          n stable || exit
67  fi  fi
68    
69    if [ ! -x "/usr/local/bin/gulp" ] ; then
70            echo "installing gulp"
71            npm install -g gulp
72    fi
73    
74    
75    
76  if [ ! -d "xo-web" ] ; then  if [ ! -d "xo-web" ] ; then
# Line 81  fi Line 92  fi
92    
93    
94  # xo-server  # xo-server
95    echo "building xo-server"
96  cd xo-server  cd xo-server
97  npm install --unsafe-perm || exit  npm install || exit
98  npm run build || exit  npm run build || exit
99  cd ..  cd ..
100    
101    
102  #xo-web  #xo-web
103    echo "building xo-web"
104  cd xo-web  cd xo-web
105  npm install --unsafe-perm || exit  npm install --unsafe-perm || exit
106  npm run build || exit  npm run build || exit

Legend:
Removed from v.2958  
changed lines
  Added in v.2961

  ViewVC Help
Powered by ViewVC 1.1.20