|
46 | 46 | # the OpenSceneGraph, PLIB, SimGear libraries and
|
47 | 47 | # FlightGear Flight Simulator.
|
48 | 48 |
|
49 |
| -tempdir="/tmp/FlightGear_Sources" # Directory where the source codes will be downloaded to. |
| 49 | +download_dir="/tmp/FlightGear_Sources" # Directory where the source codes will be downloaded to. |
50 | 50 | fgbranch="release/2020.3" # Branch for FlightHear
|
51 | 51 | sgbranch="release/2020.3" # Branch for SimGear
|
52 | 52 | osgbranch="OpenSceneGraph-3.6" # Branch for OpenSceneGraph
|
@@ -91,45 +91,45 @@ echo "#====== Downloading Source Codes Started."
|
91 | 91 | # Checking OpenSceneGraph
|
92 | 92 | echo ""
|
93 | 93 | echo "#====== Checking if OpenSceneGraph was already downloaded."
|
94 |
| -if [ -d "$tempdir/OSG" ]; then |
| 94 | +if [ -d "$download_dir/OSG" ]; then |
95 | 95 | echo "#====== OpenSceneGraph found, updating the repo if neded."
|
96 |
| -cd $tempdir/OSG && git pull # Try to update existing previously cloned repo. |
| 96 | +cd $download_dir/OSG && git pull # Try to update existing previously cloned repo. |
97 | 97 | else
|
98 | 98 | echo "#====== OpenSceneGraph not found, downloading now."
|
99 |
| -git clone --depth=1 -b $osgbranch $osgurl $tempdir/OSG # Clone repo from Git |
| 99 | +git clone --depth=1 -b $osgbranch $osgurl $download_dir/OSG # Clone repo from Git |
100 | 100 | fi
|
101 | 101 |
|
102 | 102 | # Checking PLIB
|
103 | 103 | echo ""
|
104 | 104 | echo "#====== Checking if PLIB was already downloaded."
|
105 |
| -if [ -d "$tempdir/PLIB" ]; then |
| 105 | +if [ -d "$download_dir/PLIB" ]; then |
106 | 106 | echo "#====== PLIB found, updating the repo if neded."
|
107 |
| -cd $tempdir/PLIB && git pull # Try to update existing previously cloned repo. |
| 107 | +cd $download_dir/PLIB && git pull # Try to update existing previously cloned repo. |
108 | 108 | else
|
109 | 109 | echo "#====== PLIB not found, downloading now."
|
110 |
| -git clone --depth=1 https://git.code.sf.net/p/libplib/code $tempdir/PLIB # Clone repo from Git |
| 110 | +git clone --depth=1 https://git.code.sf.net/p/libplib/code $download_dir/PLIB # Clone repo from Git |
111 | 111 | fi
|
112 | 112 |
|
113 | 113 | # Checking SimGear
|
114 | 114 | echo ""
|
115 | 115 | echo "#====== Checking if SimGear was already downloaded."
|
116 |
| -if [ -d "$tempdir/SimGear" ]; then |
| 116 | +if [ -d "$download_dir/SimGear" ]; then |
117 | 117 | echo "#====== SimGear found, updating the repo if neded."
|
118 |
| -cd $tempdir/SimGear && git pull # Try to update existing previously cloned repo. |
| 118 | +cd $download_dir/SimGear && git pull # Try to update existing previously cloned repo. |
119 | 119 | else
|
120 | 120 | echo "#====== SimGear not found, downloading now."
|
121 |
| -git clone --depth=1 -b $fgbranch git://git.code.sf.net/p/flightgear/simgear $tempdir/SimGear # Clone repo from Git |
| 121 | +git clone --depth=1 -b $fgbranch git://git.code.sf.net/p/flightgear/simgear $download_dir/SimGear # Clone repo from Git |
122 | 122 | fi
|
123 | 123 |
|
124 | 124 | # Checking FlightGear
|
125 | 125 | echo ""
|
126 | 126 | echo "#====== Checking if FlightGear was already downloaded."
|
127 |
| -if [ -d "$tempdir/FlightGear" ]; then |
| 127 | +if [ -d "$download_dir/FlightGear" ]; then |
128 | 128 | echo "#====== FlightGear found, updating the repo if neded."
|
129 |
| -cd $tempdir/FlightGear && git pull # Try to update existing previously cloned repo. |
| 129 | +cd $download_dir/FlightGear && git pull # Try to update existing previously cloned repo. |
130 | 130 | else
|
131 | 131 | echo "#====== FlightGear not found, downloading now."
|
132 |
| -git clone --depth=1 -b $fgbranch git://git.code.sf.net/p/flightgear/flightgear $tempdir/FlightGear # Clone repo from Git |
| 132 | +git clone --depth=1 -b $fgbranch git://git.code.sf.net/p/flightgear/flightgear $download_dir/FlightGear # Clone repo from Git |
133 | 133 | fi
|
134 | 134 |
|
135 | 135 | echo ""
|
|
0 commit comments