#!/bin/bash if [ ! -d webswing-20.2.5 ] ; echo "****" echo "* Untarring Webswing" echo "****" tar xvzf webswing-20.2.5.tar.gz fi echo "****" echo "* Compiling up Webswing" echo "****" if [ ! -d /.Trash-$UID ] ; then echo "" echo "If compiling up Webswing on a disk partition different to /home/$USER area" echo "then the Gnome-based 'trash' command needs to have the following writable directory:" echo " /.Trash-$UID" echo "" echo "Otherwise, webswing-driectdraw-javascript files with the file-permission error:" echo " Error: EACCES: permission denied, mkdir '/.Trash-$UID'" echo "" echo "This can be addressed by running:" echo " sudo mkdir /.Trash-\$UID && sudo chown \$USER:\$USER /.Trash-\$UID" echo "" echo "If required, press ^C to exit, and then run the above command" echo "Sleeping for 5 seconds ..." sleep 5 fi echo cd webswing-20.2.5 && mvn -Pbuild,release clean install cd webswing-20.2.5 && mvn -Pbuild,release clean install