d&c.sh security: use https to prevent MITM attacks
(SourceForge now allows anonymous https fetching)
This commit is contained in:
+11
-11
@@ -18,7 +18,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
VERSION="2.34"
|
VERSION="2.34"
|
||||||
FGVERSION="release/$(git ls-remote --heads git://git.code.sf.net/p/flightgear/flightgear|grep '\/release\/'|cut -f4 -d'/'|sort -t . -k 1,1n -k2,2n -k3,3n|tail -1)"
|
FGVERSION="release/$(git ls-remote --heads https://git.code.sf.net/p/flightgear/flightgear|grep '\/release\/'|cut -f4 -d'/'|sort -t . -k 1,1n -k2,2n -k3,3n|tail -1)"
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
# THANKS TO
|
# THANKS TO
|
||||||
@@ -316,7 +316,7 @@ if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="PLIB"' ]]; then
|
|||||||
|
|
||||||
mkdir -p "plib"
|
mkdir -p "plib"
|
||||||
cd "$CBD"/plib
|
cd "$CBD"/plib
|
||||||
_gitDownload git://git.code.sf.net/p/libplib/code
|
_gitDownload https://git.code.sf.net/p/libplib/code
|
||||||
_gitUpdate master
|
_gitUpdate master
|
||||||
|
|
||||||
if [ "$RECONFIGURE" = "y" ]; then
|
if [ "$RECONFIGURE" = "y" ]; then
|
||||||
@@ -345,7 +345,7 @@ if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="OPENRTI"' ]]; then
|
|||||||
|
|
||||||
mkdir -p "openrti"
|
mkdir -p "openrti"
|
||||||
cd "$CBD"/openrti
|
cd "$CBD"/openrti
|
||||||
_gitDownload git://git.code.sf.net/p/openrti/OpenRTI
|
_gitDownload https://git.code.sf.net/p/openrti/OpenRTI
|
||||||
|
|
||||||
if [ "$STABLE" = "STABLE" ]; then
|
if [ "$STABLE" = "STABLE" ]; then
|
||||||
_gitUpdate release-0.7
|
_gitUpdate release-0.7
|
||||||
@@ -378,7 +378,7 @@ if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="OSG"' ]]; then
|
|||||||
echo "**************** OSG *******************" | tee -a $LOGFILE
|
echo "**************** OSG *******************" | tee -a $LOGFILE
|
||||||
echo "****************************************" | tee -a $LOGFILE
|
echo "****************************************" | tee -a $LOGFILE
|
||||||
cd "$CBD"/openscenegraph
|
cd "$CBD"/openscenegraph
|
||||||
_gitDownload http://github.com/openscenegraph/osg.git
|
_gitDownload https://github.com/openscenegraph/osg.git
|
||||||
_gitUpdate OpenSceneGraph-3.2
|
_gitUpdate OpenSceneGraph-3.2
|
||||||
|
|
||||||
if [ "$RECONFIGURE" = "y" ]; then
|
if [ "$RECONFIGURE" = "y" ]; then
|
||||||
@@ -419,7 +419,7 @@ if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="SIMGEAR"' ]]; then
|
|||||||
|
|
||||||
mkdir -p "simgear"
|
mkdir -p "simgear"
|
||||||
cd "$CBD"/simgear
|
cd "$CBD"/simgear
|
||||||
_gitDownload git://git.code.sf.net/p/flightgear/simgear
|
_gitDownload https://git.code.sf.net/p/flightgear/simgear
|
||||||
_gitUpdate $FGVERSION
|
_gitUpdate $FGVERSION
|
||||||
|
|
||||||
if [ "$RECONFIGURE" = "y" ]; then
|
if [ "$RECONFIGURE" = "y" ]; then
|
||||||
@@ -452,7 +452,7 @@ if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="FGFS"' || "$(declare -p WHAT
|
|||||||
cd "$CBD"/flightgear
|
cd "$CBD"/flightgear
|
||||||
|
|
||||||
if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="FGFS"' ]]; then
|
if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="FGFS"' ]]; then
|
||||||
_gitDownload git://git.code.sf.net/p/flightgear/flightgear
|
_gitDownload https://git.code.sf.net/p/flightgear/flightgear
|
||||||
_gitUpdate $FGVERSION
|
_gitUpdate $FGVERSION
|
||||||
|
|
||||||
if [ "$RECONFIGURE" = "y" ]; then
|
if [ "$RECONFIGURE" = "y" ]; then
|
||||||
@@ -479,7 +479,7 @@ if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="FGFS"' || "$(declare -p WHAT
|
|||||||
echo "**************** DATA ******************" | tee -a $LOGFILE
|
echo "**************** DATA ******************" | tee -a $LOGFILE
|
||||||
echo "****************************************" | tee -a $LOGFILE
|
echo "****************************************" | tee -a $LOGFILE
|
||||||
|
|
||||||
_gitDownload git://git.code.sf.net/p/flightgear/fgdata
|
_gitDownload https://git.code.sf.net/p/flightgear/fgdata
|
||||||
_gitUpdate $FGVERSION
|
_gitUpdate $FGVERSION
|
||||||
fi
|
fi
|
||||||
cd "$CBD"
|
cd "$CBD"
|
||||||
@@ -521,7 +521,7 @@ if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="FGRUN"' ]]; then
|
|||||||
|
|
||||||
mkdir -p "fgrun"
|
mkdir -p "fgrun"
|
||||||
cd "$CBD"/fgrun
|
cd "$CBD"/fgrun
|
||||||
_gitDownload git://git.code.sf.net/p/flightgear/fgrun
|
_gitDownload https://git.code.sf.net/p/flightgear/fgrun
|
||||||
_gitUpdate $FGVERSION
|
_gitUpdate $FGVERSION
|
||||||
|
|
||||||
if [ "$RECONFIGURE" = "y" ]; then
|
if [ "$RECONFIGURE" = "y" ]; then
|
||||||
@@ -649,7 +649,7 @@ if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="ATCPIE"' ]]; then
|
|||||||
|
|
||||||
mkdir -p "$INSTALL_DIR_ATCPIE"
|
mkdir -p "$INSTALL_DIR_ATCPIE"
|
||||||
cd $INSTALL_DIR_ATCPIE
|
cd $INSTALL_DIR_ATCPIE
|
||||||
_gitDownload git://git.code.sf.net/p/atc-pie/code
|
_gitDownload https://git.code.sf.net/p/atc-pie/code
|
||||||
_gitUpdate master
|
_gitUpdate master
|
||||||
|
|
||||||
cd "$CBD"
|
cd "$CBD"
|
||||||
@@ -702,7 +702,7 @@ if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="TERRAGEAR"' ]]; then
|
|||||||
|
|
||||||
mkdir -p "terragear"
|
mkdir -p "terragear"
|
||||||
cd "$CBD"/terragear
|
cd "$CBD"/terragear
|
||||||
_gitDownload git://git.code.sf.net/p/flightgear/terragear
|
_gitDownload https://git.code.sf.net/p/flightgear/terragear
|
||||||
_gitUpdate scenery/ws2.0
|
_gitUpdate scenery/ws2.0
|
||||||
|
|
||||||
if [ "$RECONFIGURE" = "y" ]; then
|
if [ "$RECONFIGURE" = "y" ]; then
|
||||||
@@ -753,7 +753,7 @@ if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="TERRAGEARGUI"' ]]; then
|
|||||||
|
|
||||||
mkdir -p "terrageargui"
|
mkdir -p "terrageargui"
|
||||||
cd "$CBD"/terrageargui
|
cd "$CBD"/terrageargui
|
||||||
_gitDownload git://git.code.sf.net/p/flightgear/fgscenery/terrageargui
|
_gitDownload https://git.code.sf.net/p/flightgear/fgscenery/terrageargui
|
||||||
_gitUpdate master
|
_gitUpdate master
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user