• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision3d7b46424507ea28076a2c0fd5ad039472208ba6 (tree)
Time2012-03-03 11:59:20
Authormatsuand <matsuand@user...>
Commitermatsuand

Log Message

Corrected BLFS/bash_shell_startup_files.sh.

Change Summary

Incremental Difference

--- a/BLFS/bash_shell_startup_files.sh
+++ b/BLFS/bash_shell_startup_files.sh
@@ -1,6 +1,6 @@
11 #!/bin/sh
22
3-sudo cat > /etc/profile << "EOF"
3+cat > /etc/profile << "EOF"
44 # Begin /etc/profile
55 # Written for Beyond Linux From Scratch
66 # by James Robertson <jameswrobertson@earthlink.net>
@@ -75,9 +75,9 @@ unset pathremove pathprepend pathappend
7575 # End /etc/profile
7676 EOF
7777
78-sudo install --directory --mode=0755 --owner=root --group=root /etc/profile.d
78+install --directory --mode=0755 --owner=root --group=root /etc/profile.d
7979
80-sudo cat > /etc/profile.d/dircolors.sh << "EOF"
80+cat > /etc/profile.d/dircolors.sh << "EOF"
8181 # Setup for /bin/ls to support color, the alias is in /etc/bashrc.
8282 if [ -f "/etc/dircolors" ] ; then
8383 eval $(dircolors -b /etc/dircolors)
@@ -89,7 +89,7 @@ fi
8989 alias ls='ls --color=auto'
9090 EOF
9191
92-sudo cat > /etc/profile.d/extrapaths.sh << "EOF"
92+cat > /etc/profile.d/extrapaths.sh << "EOF"
9393 if [ -d /usr/local/lib/pkgconfig ] ; then
9494 pathappend /usr/local/lib/pkgconfig PKG_CONFIG_PATH
9595 fi
@@ -108,7 +108,7 @@ fi
108108 #fi
109109 EOF
110110
111-sudo cat > /etc/profile.d/readline.sh << "EOF"
111+cat > /etc/profile.d/readline.sh << "EOF"
112112 # Setup the INPUTRC environment variable.
113113 if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ] ; then
114114 INPUTRC=/etc/inputrc
@@ -116,7 +116,7 @@ fi
116116 export INPUTRC
117117 EOF
118118
119-sudo cat > /etc/profile.d/umask.sh << "EOF"
119+cat > /etc/profile.d/umask.sh << "EOF"
120120 # By default we want the umask to get set.
121121 if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
122122 umask 002
@@ -125,7 +125,7 @@ else
125125 fi
126126 EOF
127127
128-sudo cat > /etc/profile.d/X.sh << "EOF"
128+cat > /etc/profile.d/X.sh << "EOF"
129129 if [ -x /usr/X11/bin/X ]; then
130130 pathappend /usr/X11/bin
131131 fi
@@ -134,12 +134,12 @@ if [ -d /usr/X11/lib/pkgconfig ] ; then
134134 fi
135135 EOF
136136
137-sudo cat > /etc/profile.d/i18n.sh << "EOF"
137+cat > /etc/profile.d/i18n.sh << "EOF"
138138 # Set up i18n variables
139139 export LANG=ja_JP.UTF-8
140140 EOF
141141
142-sudo cat > /etc/bashrc << "EOF"
142+cat > /etc/bashrc << "EOF"
143143 # Begin /etc/bashrc
144144 # Written for Beyond Linux From Scratch
145145 # by James Robertson <jameswrobertson@earthlink.net>
@@ -176,7 +176,7 @@ fi
176176 export LFS=/mnt/lfs
177177 EOF
178178
179-sudo cat > /root/.bash_profile << "EOF"
179+cat > /root/.bash_profile << "EOF"
180180 # Begin ~/.bash_profile
181181 # Written for Beyond Linux From Scratch
182182 # by James Robertson <jameswrobertson@earthlink.net>
@@ -215,7 +215,7 @@ unset append
215215 # End ~/.bash_profile
216216 EOF
217217
218-sudo cat > /root/.bashrc << "EOF"
218+cat > /root/.bashrc << "EOF"
219219 # Begin ~/.bashrc
220220 # Written for Beyond Linux From Scratch
221221 # by James Robertson <jameswrobertson@earthlink.net>
@@ -243,7 +243,7 @@ export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \
243243 export PKG_CONFIG_PATH=$XORG_PREFIX/lib/pkgconfig
244244 EOF
245245
246-sudo cat > /root/.bash_logout << "EOF"
246+cat > /root/.bash_logout << "EOF"
247247 # Begin ~/.bash_logout
248248 # Written for Beyond Linux From Scratch
249249 # by James Robertson <jameswrobertson@earthlink.net>
@@ -253,11 +253,11 @@ sudo cat > /root/.bash_logout << "EOF"
253253 # End ~/.bash_logout
254254 EOF
255255
256-sudo dircolors -p > /etc/dircolors
256+dircolors -p > /etc/dircolors
257257
258-sudo mkdir -pv /etc/skel
259-sudo cp /root/.bashrc /etc/skel
260-sudo cp /root/.bash_profile /etc/skel
261-sudo cp /root/.bash_logout /etc/skel
262-sudo cp /root/.viminfo /etc/skel
258+mkdir -pv /etc/skel
259+cp /root/.bashrc /etc/skel
260+cp /root/.bash_profile /etc/skel
261+cp /root/.bash_logout /etc/skel
262+cp /root/.viminfo /etc/skel
263263