File tree Expand file tree Collapse file tree 4 files changed +52
-24
lines changed Expand file tree Collapse file tree 4 files changed +52
-24
lines changed Original file line number Diff line number Diff line change 95
95
rm test-zlib 2> /dev/null
96
96
rm test-zlib.exe 2> /dev/null
97
97
98
+ # djcross-gcc-X.XX-tar.* maybe moved from /djgpp/rpms/ to /djgpp/deleted/rpms/ directory.
99
+ OLD_DJCROSS_GCC_ARCHIVE=${DJCROSS_GCC_ARCHIVE/ rpms\/ / deleted\/ rpms\/ }
100
+
98
101
# download source files
99
102
ARCHIVE_LIST=" $BINUTILS_ARCHIVE $DJCRX_ARCHIVE $DJLSR_ARCHIVE $DJDEV_ARCHIVE
100
- $SED_ARCHIVE $DJCROSS_GCC_ARCHIVE $GCC_ARCHIVE
103
+ $SED_ARCHIVE $DJCROSS_GCC_ARCHIVE $OLD_DJCROSS_GCC_ARCHIVE $ GCC_ARCHIVE
101
104
$GMP_ARCHIVE $MPFR_ARCHIVE $MPC_ARCHIVE
102
105
$AUTOCONF_ARCHIVE $AUTOMAKE_ARCHIVE "
103
106
@@ -110,13 +113,17 @@ for ARCHIVE in $ARCHIVE_LIST; do
110
113
if ! [ -f $FILE ]; then
111
114
echo " Download $ARCHIVE ..."
112
115
if [ ! -z $USE_WGET ]; then
113
- if ! wget -U firefox $ARCHIVE ; then
114
- rm $FILE
115
- exit 1
116
- fi
116
+ DL_CMD=" wget -U firefox $ARCHIVE "
117
117
else
118
- if ! curl -f $ARCHIVE -L -o $FILE ; then
118
+ DL_CMD=" curl -f $ARCHIVE -L -o $FILE "
119
+ fi
120
+ echo " Command : $DL_CMD "
121
+ if ! eval $DL_CMD ; then
122
+ if [ " $ARCHIVE " == " $DJCROSS_GCC_ARCHIVE " ]; then
123
+ echo " $FILE maybe moved to deleted/ directory."
124
+ else
119
125
rm $FILE
126
+ echo " Download $ARCHIVE failed."
120
127
exit 1
121
128
fi
122
129
fi
Original file line number Diff line number Diff line change 95
95
rm test-zlib 2> /dev/null
96
96
rm test-zlib.exe 2> /dev/null
97
97
98
+ # djcross-gcc-X.XX-tar.* maybe moved from /djgpp/rpms/ to /djgpp/deleted/rpms/ directory.
99
+ OLD_DJCROSS_GCC_ARCHIVE=${DJCROSS_GCC_ARCHIVE/ rpms\/ / deleted\/ rpms\/ }
100
+
98
101
# download source files
99
102
ARCHIVE_LIST=" $BINUTILS_ARCHIVE $DJCRX_ARCHIVE $DJLSR_ARCHIVE $DJDEV_ARCHIVE
100
- $SED_ARCHIVE $DJCROSS_GCC_ARCHIVE $GCC_ARCHIVE
103
+ $SED_ARCHIVE $DJCROSS_GCC_ARCHIVE $OLD_DJCROSS_GCC_ARCHIVE $ GCC_ARCHIVE
101
104
$GMP_ARCHIVE $MPFR_ARCHIVE $MPC_ARCHIVE
102
105
$AUTOCONF_ARCHIVE $AUTOMAKE_ARCHIVE "
103
106
@@ -110,13 +113,17 @@ for ARCHIVE in $ARCHIVE_LIST; do
110
113
if ! [ -f $FILE ]; then
111
114
echo " Download $ARCHIVE ..."
112
115
if [ ! -z $USE_WGET ]; then
113
- if ! wget -U firefox $ARCHIVE ; then
114
- rm $FILE
115
- exit 1
116
- fi
116
+ DL_CMD=" wget -U firefox $ARCHIVE "
117
117
else
118
- if ! curl -f $ARCHIVE -L -o $FILE ; then
118
+ DL_CMD=" curl -f $ARCHIVE -L -o $FILE "
119
+ fi
120
+ echo " Command : $DL_CMD "
121
+ if ! eval $DL_CMD ; then
122
+ if [ " $ARCHIVE " == " $DJCROSS_GCC_ARCHIVE " ]; then
123
+ echo " $FILE maybe moved to deleted/ directory."
124
+ else
119
125
rm $FILE
126
+ echo " Download $ARCHIVE failed."
120
127
exit 1
121
128
fi
122
129
fi
Original file line number Diff line number Diff line change 95
95
rm test-zlib 2> /dev/null
96
96
rm test-zlib.exe 2> /dev/null
97
97
98
+ # djcross-gcc-X.XX-tar.* maybe moved from /djgpp/rpms/ to /djgpp/deleted/rpms/ directory.
99
+ OLD_DJCROSS_GCC_ARCHIVE=${DJCROSS_GCC_ARCHIVE/ rpms\/ / deleted\/ rpms\/ }
100
+
98
101
# download source files
99
102
ARCHIVE_LIST=" $BINUTILS_ARCHIVE $DJCRX_ARCHIVE $DJLSR_ARCHIVE $DJDEV_ARCHIVE
100
- $SED_ARCHIVE $DJCROSS_GCC_ARCHIVE $GCC_ARCHIVE
103
+ $SED_ARCHIVE $DJCROSS_GCC_ARCHIVE $OLD_DJCROSS_GCC_ARCHIVE $ GCC_ARCHIVE
101
104
$GMP_ARCHIVE $MPFR_ARCHIVE $MPC_ARCHIVE
102
105
$AUTOCONF_ARCHIVE $AUTOMAKE_ARCHIVE "
103
106
@@ -110,13 +113,17 @@ for ARCHIVE in $ARCHIVE_LIST; do
110
113
if ! [ -f $FILE ]; then
111
114
echo " Download $ARCHIVE ..."
112
115
if [ ! -z $USE_WGET ]; then
113
- if ! wget -U firefox $ARCHIVE ; then
114
- rm $FILE
115
- exit 1
116
- fi
116
+ DL_CMD=" wget -U firefox $ARCHIVE "
117
117
else
118
- if ! curl -f $ARCHIVE -L -o $FILE ; then
118
+ DL_CMD=" curl -f $ARCHIVE -L -o $FILE "
119
+ fi
120
+ echo " Command : $DL_CMD "
121
+ if ! eval $DL_CMD ; then
122
+ if [ " $ARCHIVE " == " $DJCROSS_GCC_ARCHIVE " ]; then
123
+ echo " $FILE maybe moved to deleted/ directory."
124
+ else
119
125
rm $FILE
126
+ echo " Download $ARCHIVE failed."
120
127
exit 1
121
128
fi
122
129
fi
Original file line number Diff line number Diff line change 95
95
rm test-zlib 2> /dev/null
96
96
rm test-zlib.exe 2> /dev/null
97
97
98
+ # djcross-gcc-X.XX-tar.* maybe moved from /djgpp/rpms/ to /djgpp/deleted/rpms/ directory.
99
+ OLD_DJCROSS_GCC_ARCHIVE=${DJCROSS_GCC_ARCHIVE/ rpms\/ / deleted\/ rpms\/ }
100
+
98
101
# download source files
99
102
ARCHIVE_LIST=" $BINUTILS_ARCHIVE $DJCRX_ARCHIVE $DJLSR_ARCHIVE $DJDEV_ARCHIVE
100
- $SED_ARCHIVE $DJCROSS_GCC_ARCHIVE $GCC_ARCHIVE
103
+ $SED_ARCHIVE $DJCROSS_GCC_ARCHIVE $OLD_DJCROSS_GCC_ARCHIVE $ GCC_ARCHIVE
101
104
$GMP_ARCHIVE $MPFR_ARCHIVE $MPC_ARCHIVE
102
105
$AUTOCONF_ARCHIVE $AUTOMAKE_ARCHIVE "
103
106
@@ -110,13 +113,17 @@ for ARCHIVE in $ARCHIVE_LIST; do
110
113
if ! [ -f $FILE ]; then
111
114
echo " Download $ARCHIVE ..."
112
115
if [ ! -z $USE_WGET ]; then
113
- if ! wget -U firefox $ARCHIVE ; then
114
- rm $FILE
115
- exit 1
116
- fi
116
+ DL_CMD=" wget -U firefox $ARCHIVE "
117
117
else
118
- if ! curl -f $ARCHIVE -L -o $FILE ; then
118
+ DL_CMD=" curl -f $ARCHIVE -L -o $FILE "
119
+ fi
120
+ echo " Command : $DL_CMD "
121
+ if ! eval $DL_CMD ; then
122
+ if [ " $ARCHIVE " == " $DJCROSS_GCC_ARCHIVE " ]; then
123
+ echo " $FILE maybe moved to deleted/ directory."
124
+ else
119
125
rm $FILE
126
+ echo " Download $ARCHIVE failed."
120
127
exit 1
121
128
fi
122
129
fi
You can’t perform that action at this time.
0 commit comments