Lines 107-113
Link Here
|
107 |
SORTED_MASTER_SITES_CMD_TMP="echo ${dp_MASTER_SITE_OVERRIDE} $(echo -n "${__MASTER_SITES_TMP}" | awk "${dp_MASTER_SORT_AWK}") ${dp_MASTER_SITE_BACKUP}" |
107 |
SORTED_MASTER_SITES_CMD_TMP="echo ${dp_MASTER_SITE_OVERRIDE} $(echo -n "${__MASTER_SITES_TMP}" | awk "${dp_MASTER_SORT_AWK}") ${dp_MASTER_SITE_BACKUP}" |
108 |
case ${dp_TARGET} in |
108 |
case ${dp_TARGET} in |
109 |
fetch-list) |
109 |
fetch-list) |
110 |
echo -n "mkdir -p ${dp_DISTDIR} && " |
110 |
case ${file} in |
|
|
111 |
*/*) |
112 |
echo -n "mkdir -p \"${dp_DISTDIR}/${file%/*}\" && " |
113 |
;; |
114 |
*) |
115 |
echo -n "mkdir -p ${dp_DISTDIR} && " |
116 |
;; |
117 |
esac |
111 |
echo -n "cd ${dp_DISTDIR} && { " |
118 |
echo -n "cd ${dp_DISTDIR} && { " |
112 |
;; |
119 |
;; |
113 |
esac |
120 |
esac |
Lines 126-132
Link Here
|
126 |
# There is a lot of escaping, but the " needs to survive echo/eval. |
133 |
# There is a lot of escaping, but the " needs to survive echo/eval. |
127 |
case ${file} in |
134 |
case ${file} in |
128 |
*/*) |
135 |
*/*) |
129 |
mkdir -p "${file%/*}" |
136 |
case ${dp_TARGET} in |
|
|
137 |
fetch-list|fetch-url-list-int) |
138 |
;; |
139 |
*) |
140 |
mkdir -p "${file%/*}" |
141 |
;; |
142 |
esac |
130 |
args="-o ${file} ${site}${file}" |
143 |
args="-o ${file} ${site}${file}" |
131 |
;; |
144 |
;; |
132 |
*) |
145 |
*) |