Skip to content
Newer
Older
100755 29 lines (23 sloc) 620 Bytes
b48603b @lincolnthree added forge-install.bsh
lincolnthree authored Oct 24, 2011
1 #!/bin/bash
2
1a0f1e5 @lincolnthree Updated error messaging
lincolnthree authored Oct 25, 2011
3 : ${1:?"Must specify distribution ZIP file to install. Ex: 'forge-install target/forge-distribution-1.0.0-SNAPSHOT.zip"}
bc31031 @lincolnthree Updated install script to use FORGE_HOME
lincolnthree authored Oct 24, 2011
4 : ${FORGE_HOME:?"FORGE_HOME must be set."}
5
b48603b @lincolnthree added forge-install.bsh
lincolnthree authored Oct 24, 2011
6 TARGET=$1
133bd8e @lincolnthree Fixed
lincolnthree authored Oct 24, 2011
7 DEV=`dirname $FORGE_HOME`
b48603b @lincolnthree added forge-install.bsh
lincolnthree authored Oct 24, 2011
8
9 if [ -n $TARGET -a -f $TARGET ]
10 then
11 echo $TARGET
12 cp $TARGET $DEV/forge.zip
13 cd $DEV
14
15 if [ -e forge ]
16 then
17 rm -rf forge
18 fi
19
20 unzip forge.zip
21 rm forge.zip
22 #there is only one... versioned "folder" name so rename it to forge
23 mv forge* forge
24 chmod -R 755 forge
25 else
26 echo "Must specify Forge distribution ZIP file to install."
27 echo "Ex: 'forge-install forge-distribution-1.0.0-SNAPSHOT.zip'"
28 fi
Something went wrong with that request. Please try again.