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 WIDEVINECDM_SRCDIR="${BUILDDIR}/WidevineCdm" | 162 if [ -f "${BUILDDIR}/libwidevinecdmadapter.so" ]; then |
163 WIDEVINECDM_DESTDIR="${STAGEDIR}/${INSTALLDIR}/WidevineCdm" | 163 install -m 644 -s "${BUILDDIR}/libwidevinecdmadapter.so" "${STAGEDIR}/${INST
ALLDIR}/" |
164 if [ -f "${WIDEVINECDM_SRCDIR}/libwidevinecdmadapter.so" ]; then | 164 install -m 644 "${BUILDDIR}/libwidevinecdm.so" "${STAGEDIR}/${INSTALLDIR}/" |
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}/" | |
170 fi | 165 fi |
171 | 166 |
172 # ANGLE | 167 # ANGLE |
173 if [ "${CHANNEL}" != "stable" ]; then | 168 if [ "${CHANNEL}" != "stable" ]; then |
174 install -m 644 "${BUILDDIR}/libGLESv2.so" "${STAGEDIR}/${INSTALLDIR}/" | 169 install -m 644 "${BUILDDIR}/libGLESv2.so" "${STAGEDIR}/${INSTALLDIR}/" |
175 install -m 644 "${BUILDDIR}/libEGL.so" "${STAGEDIR}/${INSTALLDIR}/" | 170 install -m 644 "${BUILDDIR}/libEGL.so" "${STAGEDIR}/${INSTALLDIR}/" |
176 fi | 171 fi |
177 | 172 |
178 # Pepper Flash. | 173 # Pepper Flash. |
179 PEPPERFLASH_SRCDIR="${BUILDDIR}/PepperFlash" | 174 PEPPERFLASH_SRCDIR="${BUILDDIR}/PepperFlash" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml" | 246 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml" |
252 chmod 644 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.
xml" | 247 chmod 644 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.
xml" |
253 process_template "${BUILDDIR}/installer/common/default-app-block.template" \ | 248 process_template "${BUILDDIR}/installer/common/default-app-block.template" \ |
254 "${STAGEDIR}${INSTALLDIR}/default-app-block" | 249 "${STAGEDIR}${INSTALLDIR}/default-app-block" |
255 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block" | 250 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block" |
256 | 251 |
257 # documentation | 252 # documentation |
258 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \ | 253 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \ |
259 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1" | 254 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1" |
260 } | 255 } |
OLD | NEW |