#!/bin/bash UNITY_VERSION=1.7.2 TARGET=target SYNAT_UNITY_SERVER=../../../sources/trunk/synat-platform/synat-unity-server CONF=$SYNAT_UNITY_SERVER/conf DUMP=$SYNAT_UNITY_SERVER/conf/data/unity-dbdump.json LIBS=$TARGET/lib UNITY_DOWNLOAD_URL=http://sourceforge.net/projects/unity-idm/files/Unity%20server/$UNITY_VERSION/unity-server-distribution-$UNITY_VERSION-dist.tar.gz/download #UNITY_DOWNLOAD_URL=http://sourceforge.net/projects/unity-idm/files/Unity%20server/unofficial/unity-server-distribution-1.7.2-SNAPSHOT-dist.tar.gz/download UNITY_DIR_NAME=unity-server-distribution-$UNITY_VERSION UNITY_PATH=$TARGET/$UNITY_DIR_NAME UNITY_PATH_ARCH=$UNITY_PATH-dist.tar.gz UNITY_CONF=$UNITY_PATH/conf/ UNITY_WORK=$UNITY_PATH/data/workspace/ UNITY_DUMP=$UNITY_PATH/data/workspace/databaseDumps/ UNITY_LIBS=$UNITY_PATH/lib/ rm -rf $TARGET mkdir $TARGET mkdir $LIBS wget $UNITY_DOWNLOAD_URL -O $UNITY_PATH_ARCH tar -xzf $UNITY_PATH_ARCH -C $TARGET #rm $UNITY_LIBS/unity-server-persistence-1.6.1.jar #rm $UNITY_LIBS/unity-server-saml-1.6.1.jar #rm $UNITY_LIBS/unity-server-web-admin-1.6.1.jar wget -P $LIBS http://maven.icm.edu.pl/artifactory/repo1-cache/org/jasypt/jasypt/1.7.1/jasypt-1.7.1.jar wget -P $LIBS http://maven.icm.edu.pl/artifactory/synat-releases/pl/edu/icm/synat/synat-unity-ext/1.0.5/synat-unity-ext-1.0.5.jar #wget -P $LIBS http://maven.icm.edu.pl/artifactory/ext-releases-local/pl/edu/icm/unity/unity-server-persistence/1.6.1.fixes1/unity-server-persistence-1.6.1.fixes1.jar #wget -P $LIBS http://maven.icm.edu.pl/artifactory/ext-releases-local/pl/edu/icm/unity/unity-server-saml/1.6.1.fixes1/unity-server-saml-1.6.1.fixes1.jar #wget -P $LIBS http://maven.icm.edu.pl/artifactory/ext-releases-local/pl/edu/icm/unity/unity-server-web-admin/1.6.1.fixes1/unity-server-web-admin-1.6.1.fixes1.jar cp $CONF/* $UNITY_CONF -rf mkdir $UNITY_WORK mkdir $UNITY_DUMP cp $DUMP $UNITY_DUMP -f cp $LIBS/* $UNITY_LIBS -f cd target tar -czvf ../unity-server-distribution-$UNITY_VERSION.infona-dist.tar.gz $UNITY_DIR_NAME cd ..