Created
April 21, 2016 20:51
-
-
Save peterdietz/769243c84738d4bba496ff50e63031de to your computer and use it in GitHub Desktop.
Rebuild DSpace with Mirage2 on OSX, includes OS notifications and sounds, and restart tomcat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
echo "Begin DSpace recompile+redeploy" | |
mvn clean package -Dmirage2.on=true -Dmirage2.deps.included=false | |
#mvn clean package -DskipTests=true | |
cd dspace/target/dspace-installer | |
catalina7 stop -force | |
ant update | |
catalina7 start | |
echo "DSpace redeployed..." | |
osascript -e 'display notification "Code recompile + redeploy complete, back to work!" with title "DSpace"' | |
sleep 20 | |
curl -s http://localhost:8080/xmlui | |
date | |
afplay /System/Library/Sounds/Submarine.aiff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment