Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # This is for bash on NaCl. Note that you cannot use external commands | 6 # This is for bash on NaCl. Note that you cannot use external commands |
| 7 # until the installation is completed. Also, you cannot use features | 7 # until the installation is completed. Also, you cannot use features |
| 8 # which nacl_io does not support yet (e.g., pipes and sub-shells). | 8 # which nacl_io does not support yet (e.g., pipes and sub-shells). |
| 9 | 9 |
| 10 # Setup environment once to get location of fixed things like coreutils. | 10 # Setup environment once to get location of fixed things like coreutils. |
| 11 source /mnt/http/setup-environment | 11 source /mnt/http/setup-environment |
| 12 | 12 |
| 13 /mnt/http/install-base-packages.sh | 13 /mnt/http/install-base-packages.sh |
| 14 | 14 |
| 15 # Setup default .gitconfig if it doesn't already exist. | |
|
Sam Clegg
2015/04/08 23:34:59
A bit more info here about why its needed and a TO
bradn
2015/04/09 00:07:21
Done.
| |
| 16 if [ ! -e /home/user/.gitconfig ]; then | |
| 17 git config --global init.templatedir "" | |
| 18 git config --global user.name "John Doe" | |
| 19 git config --global user.email "john.doe@foo.com" | |
| 20 fi | |
| 21 | |
| 15 # Setup environment again, to rescan the packages added. | 22 # Setup environment again, to rescan the packages added. |
| 16 source /mnt/http/setup-environment | 23 source /mnt/http/setup-environment |
| 17 | 24 |
| 18 cd ${HOME} | 25 cd ${HOME} |
| 19 | 26 |
| 20 if [ -e ${HOME}/.bashrc ]; then | 27 if [ -e ${HOME}/.bashrc ]; then |
| 21 source ${HOME}/.bashrc | 28 source ${HOME}/.bashrc |
| 22 fi | 29 fi |
| OLD | NEW |