| OLD | NEW |
| 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 # | 4 # |
| 5 # Environment variable NACL_ARCH should be set to one of the following | 5 # Environment variable NACL_ARCH should be set to one of the following |
| 6 # values: i686 x86_64 pnacl arm | 6 # values: i686 x86_64 pnacl arm |
| 7 | 7 |
| 8 | 8 |
| 9 # NAMING CONVENTION | 9 # NAMING CONVENTION |
| 10 # ================= | 10 # ================= |
| (...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1403 for a in ${arches} ; do | 1403 for a in ${arches} ; do |
| 1404 echo "translating pexe -O2 [${a}]" | 1404 echo "translating pexe -O2 [${a}]" |
| 1405 nexe=${basename}.opt.${a}.nexe | 1405 nexe=${basename}.opt.${a}.nexe |
| 1406 if [ "${pexe}" -nt "${nexe}" ]; then | 1406 if [ "${pexe}" -nt "${nexe}" ]; then |
| 1407 "${TRANSLATOR}" -O2 -arch "${a}" "${pexe}" -o "${nexe}" | 1407 "${TRANSLATOR}" -O2 -arch "${a}" "${pexe}" -o "${nexe}" |
| 1408 fi | 1408 fi |
| 1409 done | 1409 done |
| 1410 fi | 1410 fi |
| 1411 | 1411 |
| 1412 local dirname=$(dirname "${pexe}") | 1412 local dirname=$(dirname "${pexe}") |
| 1413 ls -l "${dirname}"/*.nexe "${pexe}" | 1413 ls -l ${pexe} ${basename}*.nexe |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 | 1416 |
| 1417 # | 1417 # |
| 1418 # Create a zip file for uploading to the chrome web store. | 1418 # Create a zip file for uploading to the chrome web store. |
| 1419 # $1 - zipfile to create | 1419 # $1 - zipfile to create |
| 1420 # $2 - directory to zip | 1420 # $2 - directory to zip |
| 1421 # | 1421 # |
| 1422 CreateWebStoreZip() { | 1422 CreateWebStoreZip() { |
| 1423 if [ "${NACLPORTS_QUICKBUILD}" = "1" ]; then | 1423 if [ "${NACLPORTS_QUICKBUILD}" = "1" ]; then |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1605 ###################################################################### | 1605 ###################################################################### |
| 1606 # Always run | 1606 # Always run |
| 1607 # These functions are called when this script is imported to do | 1607 # These functions are called when this script is imported to do |
| 1608 # any essential checking/setup operations. | 1608 # any essential checking/setup operations. |
| 1609 ###################################################################### | 1609 ###################################################################### |
| 1610 PatchSpecsFile | 1610 PatchSpecsFile |
| 1611 InjectSystemHeaders | 1611 InjectSystemHeaders |
| 1612 InstallConfigSite | 1612 InstallConfigSite |
| 1613 GetRevision | 1613 GetRevision |
| 1614 MakeDirs | 1614 MakeDirs |
| OLD | NEW |