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

Side by Side Diff: build/linux/sysroot_scripts/sysroot-creator.sh

Issue 2391573005: Linux: Add a script to generate a Precise dpkg admin dir for use with official builds on Trusty. (Closed)
Patch Set: Update generate_precise_dpkg_admin_dir.py Created 4 years, 2 months 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 | « build/linux/sysroot_scripts/generate_precise_dpkg_admin_dir.py ('k') | 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 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium 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 # This script should not be run directly but sourced by the other 5 # This script should not be run directly but sourced by the other
6 # scripts (e.g. sysroot-creator-trusty.sh). Its up to the parent scripts 6 # scripts (e.g. sysroot-creator-trusty.sh). Its up to the parent scripts
7 # to define certain environment variables: e.g. 7 # to define certain environment variables: e.g.
8 # DISTRO=ubuntu 8 # DISTRO=ubuntu
9 # DIST=trusty 9 # DIST=trusty
10 # APT_REPO=http://archive.ubuntu.com/ubuntu 10 # APT_REPO=http://archive.ubuntu.com/ubuntu
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 #@ 800 #@
801 #@ Regenerate the package lists for all architectures. 801 #@ Regenerate the package lists for all architectures.
802 UpdatePackageListsAll() { 802 UpdatePackageListsAll() {
803 RunCommand UpdatePackageListsAmd64 803 RunCommand UpdatePackageListsAmd64
804 RunCommand UpdatePackageListsI386 804 RunCommand UpdatePackageListsI386
805 RunCommand UpdatePackageListsARM 805 RunCommand UpdatePackageListsARM
806 RunCommand UpdatePackageListsARM64 806 RunCommand UpdatePackageListsARM64
807 RunCommand UpdatePackageListsMips 807 RunCommand UpdatePackageListsMips
808 } 808 }
809 809
810 #@
811 #@ ListPackagesI386
812 #@
813 #@ Lists all packages necessary to build chrome for i386
814 ListPackagesI386() {
815 echo "${DEBIAN_PACKAGES} ${DEBIAN_PACKAGES_X86:=}" |
816 sed -e 's/^[[:space:]]*//' | sed '/^$/d' > "$1"
817 }
818
819 #@
820 #@ ListPackagesAmd64
821 #@
822 #@ Lists all packages necessary to build chrome for amd64
823 ListPackagesAmd64() {
824 echo "${DEBIAN_PACKAGES} ${DEBIAN_PACKAGES_AMD64:=}" |
825 sed -e 's/^[[:space:]]*//' | sed '/^$/d' > "$1"
826 }
827
810 RunCommand() { 828 RunCommand() {
811 SetEnvironmentVariables "$1" 829 SetEnvironmentVariables "$1"
812 SanityCheck 830 SanityCheck
813 "$@" 831 "$@"
814 } 832 }
815 833
816 if [ $# -eq 0 ] ; then 834 if [ $# -eq 0 ] ; then
817 echo "ERROR: you must specify a mode on the commandline" 835 echo "ERROR: you must specify a mode on the commandline"
818 echo 836 echo
819 Usage 837 Usage
820 exit 1 838 exit 1
821 elif [ "$(type -t $1)" != "function" ]; then 839 elif [ "$(type -t $1)" != "function" ]; then
822 echo "ERROR: unknown function '$1'." >&2 840 echo "ERROR: unknown function '$1'." >&2
823 echo "For help, try:" 841 echo "For help, try:"
824 echo " $0 help" 842 echo " $0 help"
825 exit 1 843 exit 1
826 else 844 else
827 ChangeDirectory 845 ChangeDirectory
828 if echo $1 | grep -qs "All$"; then 846 if echo $1 | grep -qs "All$"; then
829 "$@" 847 "$@"
830 else 848 else
831 RunCommand "$@" 849 RunCommand "$@"
832 fi 850 fi
833 fi 851 fi
OLDNEW
« no previous file with comments | « build/linux/sysroot_scripts/generate_precise_dpkg_admin_dir.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698