source: gs3-extensions/webswing/trunk/src/COMPILE.sh@ 36493

Last change on this file since 36493 was 36493, checked in by davidb, 21 months ago

Need to untar if not already done

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/bin/bash
2
3if [ ! -d webswing-20.2.5 ] ;
4
5 echo "****"
6 echo "* Untarring Webswing"
7 echo "****"
8
9 tar xvzf webswing-20.2.5.tar.gz
10fi
11
12echo "****"
13echo "* Compiling up Webswing"
14echo "****"
15
16if [ ! -d /.Trash-$UID ] ; then
17
18 echo ""
19 echo "If compiling up Webswing on a disk partition different to /home/$USER area"
20 echo "then the Gnome-based 'trash' command needs to have the following writable directory:"
21 echo " /.Trash-$UID"
22 echo ""
23 echo "Otherwise, webswing-driectdraw-javascript files with the file-permission error:"
24 echo " Error: EACCES: permission denied, mkdir '/.Trash-$UID'"
25 echo ""
26 echo "This can be addressed by running:"
27 echo " sudo mkdir /.Trash-\$UID && sudo chown \$USER:\$USER /.Trash-\$UID"
28 echo ""
29
30 echo "If required, press ^C to exit, and then run the above command"
31 echo "Sleeping for 5 seconds ..."
32 sleep 5
33fi
34
35
36echo cd webswing-20.2.5 && mvn -Pbuild,release clean install
37cd webswing-20.2.5 && mvn -Pbuild,release clean install
Note: See TracBrowser for help on using the repository browser.