OLD | NEW |
1 # Recursively replace @@include@@ template variables with the referenced file, | 1 # Recursively replace @@include@@ template variables with the referenced file, |
2 # and write the resulting text to stdout. | 2 # and write the resulting text to stdout. |
3 process_template_includes() { | 3 process_template_includes() { |
4 INCSTACK+="$1->" | 4 INCSTACK+="$1->" |
5 # Includes are relative to the file that does the include. | 5 # Includes are relative to the file that does the include. |
6 INCDIR=$(dirname $1) | 6 INCDIR=$(dirname $1) |
7 # Clear IFS so 'read' doesn't trim whitespace | 7 # Clear IFS so 'read' doesn't trim whitespace |
8 local OLDIFS="$IFS" | 8 local OLDIFS="$IFS" |
9 IFS='' | 9 IFS='' |
10 while read -r LINE | 10 while read -r LINE |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 # the code looks for, but the build targets can't use hyphens (scons bug?) | 152 # the code looks for, but the build targets can't use hyphens (scons bug?) |
153 install -m 4755 -s "${BUILDDIR}/${PROGNAME}_sandbox" \ | 153 install -m 4755 -s "${BUILDDIR}/${PROGNAME}_sandbox" \ |
154 "${STAGEDIR}/${INSTALLDIR}/${PROGNAME}-sandbox" | 154 "${STAGEDIR}/${INSTALLDIR}/${PROGNAME}-sandbox" |
155 | 155 |
156 # l10n paks | 156 # l10n paks |
157 cp -a "${BUILDDIR}/locales" "${STAGEDIR}/${INSTALLDIR}/" | 157 cp -a "${BUILDDIR}/locales" "${STAGEDIR}/${INSTALLDIR}/" |
158 find "${STAGEDIR}/${INSTALLDIR}/locales" -type f -exec chmod 644 '{}' \; | 158 find "${STAGEDIR}/${INSTALLDIR}/locales" -type f -exec chmod 644 '{}' \; |
159 find "${STAGEDIR}/${INSTALLDIR}/locales" -type d -exec chmod 755 '{}' \; | 159 find "${STAGEDIR}/${INSTALLDIR}/locales" -type d -exec chmod 755 '{}' \; |
160 | 160 |
161 # Widevine CDM. | 161 # Widevine CDM. |
162 if [ -f "${BUILDDIR}/libwidevinecdmadapter.so" ]; then | 162 WIDEVINECDM_SRCDIR="${BUILDDIR}/WidevineCdm" |
163 install -m 644 -s "${BUILDDIR}/libwidevinecdmadapter.so" "${STAGEDIR}/${INST
ALLDIR}/" | 163 WIDEVINECDM_DESTDIR="${STAGEDIR}/${INSTALLDIR}/WidevineCdm" |
164 install -m 644 "${BUILDDIR}/libwidevinecdm.so" "${STAGEDIR}/${INSTALLDIR}/" | 164 if [ -f "${WIDEVINECDM_SRCDIR}/libwidevinecdmadapter.so" ]; then |
| 165 install -m 755 -d "${WIDEVINECDM_DESTDIR}" |
| 166 install -m 644 -s "${WIDEVINECDM_SRCDIR}/libwidevinecdmadapter.so" \ |
| 167 "${WIDEVINECDM_DESTDIR}/" |
| 168 install -m 644 "${WIDEVINECDM_SRCDIR}/libwidevinecdm.so" \ |
| 169 "${WIDEVINECDM_DESTDIR}/" |
165 fi | 170 fi |
166 | 171 |
167 # ANGLE | 172 # ANGLE |
168 if [ "${CHANNEL}" != "stable" ]; then | 173 if [ "${CHANNEL}" != "stable" ]; then |
169 install -m 644 "${BUILDDIR}/libGLESv2.so" "${STAGEDIR}/${INSTALLDIR}/" | 174 install -m 644 "${BUILDDIR}/libGLESv2.so" "${STAGEDIR}/${INSTALLDIR}/" |
170 install -m 644 "${BUILDDIR}/libEGL.so" "${STAGEDIR}/${INSTALLDIR}/" | 175 install -m 644 "${BUILDDIR}/libEGL.so" "${STAGEDIR}/${INSTALLDIR}/" |
171 fi | 176 fi |
172 | 177 |
173 # Pepper Flash. | 178 # Pepper Flash. |
174 PEPPERFLASH_SRCDIR="${BUILDDIR}/PepperFlash" | 179 PEPPERFLASH_SRCDIR="${BUILDDIR}/PepperFlash" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml" | 251 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml" |
247 chmod 644 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.
xml" | 252 chmod 644 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.
xml" |
248 process_template "${BUILDDIR}/installer/common/default-app-block.template" \ | 253 process_template "${BUILDDIR}/installer/common/default-app-block.template" \ |
249 "${STAGEDIR}${INSTALLDIR}/default-app-block" | 254 "${STAGEDIR}${INSTALLDIR}/default-app-block" |
250 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block" | 255 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block" |
251 | 256 |
252 # documentation | 257 # documentation |
253 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \ | 258 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \ |
254 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1" | 259 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1" |
255 } | 260 } |
OLD | NEW |