| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 install -m 644 "${BUILDDIR}/chrome_100_percent.pak" "${STAGEDIR}/${INSTALLDI
R}/" | 129 install -m 644 "${BUILDDIR}/chrome_100_percent.pak" "${STAGEDIR}/${INSTALLDI
R}/" |
| 130 else | 130 else |
| 131 install -m 644 "${BUILDDIR}/theme_resources_100_percent.pak" "${STAGEDIR}/${
INSTALLDIR}/" | 131 install -m 644 "${BUILDDIR}/theme_resources_100_percent.pak" "${STAGEDIR}/${
INSTALLDIR}/" |
| 132 install -m 644 "${BUILDDIR}/ui_resources_100_percent.pak" "${STAGEDIR}/${INS
TALLDIR}/" | 132 install -m 644 "${BUILDDIR}/ui_resources_100_percent.pak" "${STAGEDIR}/${INS
TALLDIR}/" |
| 133 fi | 133 fi |
| 134 | 134 |
| 135 # ICU data file; only necessary when icu_use_data_file_flag is set to 1 | 135 # ICU data file; only necessary when icu_use_data_file_flag is set to 1 |
| 136 # in build/common.gypi. | 136 # in build/common.gypi. |
| 137 install -m 644 "${BUILDDIR}/icudtl.dat" "${STAGEDIR}/${INSTALLDIR}/" | 137 install -m 644 "${BUILDDIR}/icudtl.dat" "${STAGEDIR}/${INSTALLDIR}/" |
| 138 | 138 |
| 139 # V8 snapshot files; only necessary when v8_use_external_startup_data is |
| 140 # set to 1 in build/common.gypi. |
| 141 install -m 644 "${BUILDDIR}/natives_blob.bin" "${STAGEDIR}/${INSTALLDIR}/" |
| 142 install -m 644 "${BUILDDIR}/snapshot_blob.bin" "${STAGEDIR}/${INSTALLDIR}/" |
| 143 |
| 139 # sandbox | 144 # sandbox |
| 140 # Rename sandbox binary with hyphen instead of underscore because that's what | 145 # Rename sandbox binary with hyphen instead of underscore because that's what |
| 141 # the code looks for, but the build targets can't use hyphens (scons bug?) | 146 # the code looks for, but the build targets can't use hyphens (scons bug?) |
| 142 install -m 4755 -s "${BUILDDIR}/${PROGNAME}_sandbox" \ | 147 install -m 4755 -s "${BUILDDIR}/${PROGNAME}_sandbox" \ |
| 143 "${STAGEDIR}/${INSTALLDIR}/${PROGNAME}-sandbox" | 148 "${STAGEDIR}/${INSTALLDIR}/${PROGNAME}-sandbox" |
| 144 | 149 |
| 145 # l10n paks | 150 # l10n paks |
| 146 cp -a "${BUILDDIR}/locales" "${STAGEDIR}/${INSTALLDIR}/" | 151 cp -a "${BUILDDIR}/locales" "${STAGEDIR}/${INSTALLDIR}/" |
| 147 find "${STAGEDIR}/${INSTALLDIR}/locales" -type f -exec chmod 644 '{}' \; | 152 find "${STAGEDIR}/${INSTALLDIR}/locales" -type f -exec chmod 644 '{}' \; |
| 148 find "${STAGEDIR}/${INSTALLDIR}/locales" -type d -exec chmod 755 '{}' \; | 153 find "${STAGEDIR}/${INSTALLDIR}/locales" -type d -exec chmod 755 '{}' \; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml" | 241 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml" |
| 237 chmod 644 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.
xml" | 242 chmod 644 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.
xml" |
| 238 process_template "${BUILDDIR}/installer/common/default-app-block.template" \ | 243 process_template "${BUILDDIR}/installer/common/default-app-block.template" \ |
| 239 "${STAGEDIR}${INSTALLDIR}/default-app-block" | 244 "${STAGEDIR}${INSTALLDIR}/default-app-block" |
| 240 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block" | 245 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block" |
| 241 | 246 |
| 242 # documentation | 247 # documentation |
| 243 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \ | 248 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \ |
| 244 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1" | 249 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1" |
| 245 } | 250 } |
| OLD | NEW |