-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-gid.sh
More file actions
37 lines (31 loc) · 1.12 KB
/
install-gid.sh
File metadata and controls
37 lines (31 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# GiD folder in the root
#cd /tmp
# Version to check comes from the first argument
VERSION=$1
echo "Installing GiD version ${VERSION}"
# Get the file
TARFILENAME=gid${VERSION}-linux-x64.tar.xz
case "$VERSION" in
*IR)
TARFILENAME=gid${VERSION}-linux-x64.tar.xz
echo "Downloading GiD version ${VERSION} from https://downloads.gidsimulation.com/GiD_Important_Release_Versions/Linux/amd64/${TARFILENAME}"
wget --quiet https://downloads.gidsimulation.com/GiD_Important_Release_Versions/Linux/amd64/${TARFILENAME}
;;
*)
TARFILENAME=gid${VERSION}-linux-x64.tar.xz
echo "Downloading GiD version ${VERSION} from https://downloads.gidsimulation.com/GiD_Developer_Versions/Linux/amd64/${TARFILENAME}"
wget --quiet https://downloads.gidsimulation.com/GiD_Developer_Versions/Linux/amd64/${TARFILENAME}
;;
esac
echo "Downloaded ${TARFILENAME}"
ls
# Unzip
echo "Unzipping ${TARFILENAME}"
tar -Jxf ${TARFILENAME}
rm ${TARFILENAME}
echo "Moving files to /gid"
mv gid${VERSION}-x64/* /gid
# cd /gid
# PREFERENCESFOLDER=$HOME/.gid/${VERSION}/
# mkdir -p ${PREFERENCESFOLDER}
# PREFERENCESFILE=${PREFERENCESFOLDER}gid.ini