Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2089)

Side by Side Diff: chrome/installer/linux/common/installer.include

Issue 790233003: Check that V8 snapshot files exist before including them in the installer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 139 # V8 snapshot files; only necessary when v8_use_external_startup_data is
140 # set to 1 in build/common.gypi. 140 # set to 1 in build/common.gypi.
141 install -m 644 "${BUILDDIR}/natives_blob.bin" "${STAGEDIR}/${INSTALLDIR}/" 141 if [ -f "${BUILDDIR}/natives_blob.bin" ]; then
142 install -m 644 "${BUILDDIR}/snapshot_blob.bin" "${STAGEDIR}/${INSTALLDIR}/" 142 install -m 644 "${BUILDDIR}/natives_blob.bin" "${STAGEDIR}/${INSTALLDIR}/"
143 install -m 644 "${BUILDDIR}/snapshot_blob.bin" "${STAGEDIR}/${INSTALLDIR}/"
144 fi
143 145
144 # sandbox 146 # sandbox
145 # Rename sandbox binary with hyphen instead of underscore because that's what 147 # Rename sandbox binary with hyphen instead of underscore because that's what
146 # the code looks for, but the build targets can't use hyphens (scons bug?) 148 # the code looks for, but the build targets can't use hyphens (scons bug?)
147 install -m 4755 -s "${BUILDDIR}/${PROGNAME}_sandbox" \ 149 install -m 4755 -s "${BUILDDIR}/${PROGNAME}_sandbox" \
148 "${STAGEDIR}/${INSTALLDIR}/${PROGNAME}-sandbox" 150 "${STAGEDIR}/${INSTALLDIR}/${PROGNAME}-sandbox"
149 151
150 # l10n paks 152 # l10n paks
151 cp -a "${BUILDDIR}/locales" "${STAGEDIR}/${INSTALLDIR}/" 153 cp -a "${BUILDDIR}/locales" "${STAGEDIR}/${INSTALLDIR}/"
152 find "${STAGEDIR}/${INSTALLDIR}/locales" -type f -exec chmod 644 '{}' \; 154 find "${STAGEDIR}/${INSTALLDIR}/locales" -type f -exec chmod 644 '{}' \;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml" 251 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml"
250 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"
251 process_template "${BUILDDIR}/installer/common/default-app-block.template" \ 253 process_template "${BUILDDIR}/installer/common/default-app-block.template" \
252 "${STAGEDIR}${INSTALLDIR}/default-app-block" 254 "${STAGEDIR}${INSTALLDIR}/default-app-block"
253 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block" 255 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block"
254 256
255 # documentation 257 # documentation
256 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \ 258 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \
257 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1" 259 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1"
258 } 260 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698