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

Side by Side Diff: ports/devenv/bashrc

Issue 1071783003: Add root certificate bundle to curl package, and improve git default setup. (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: fix Created 5 years, 8 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 | « ports/curl/build.sh ('k') | ports/devenv/setup-environment » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # TODO(bradnelson): Drop this when we can install things in a more
16 # normal location and when we include the git templates in the normal
17 # location.
18 # Disabling templatedir as our git package lacks a default template set.
19 # Setiing up a default git identity, since we lack /etc/passwd as
Sam Clegg 2015/04/10 21:02:11 Setting
20 # a fallback.
21 # Setup default .gitconfig if it doesn't already exist.
22 if [ ! -e /home/user/.gitconfig ]; then
23 git config --global init.templatedir ""
24 git config --global user.name "John Doe"
25 git config --global user.email "john.doe@foo.com"
26 fi
27
15 # Setup environment again, to rescan the packages added. 28 # Setup environment again, to rescan the packages added.
16 source /mnt/http/setup-environment 29 source /mnt/http/setup-environment
17 30
18 cd ${HOME} 31 cd ${HOME}
19 32
20 if [ -e ${HOME}/.bashrc ]; then 33 if [ -e ${HOME}/.bashrc ]; then
21 source ${HOME}/.bashrc 34 source ${HOME}/.bashrc
22 fi 35 fi
OLDNEW
« no previous file with comments | « ports/curl/build.sh ('k') | ports/devenv/setup-environment » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698