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