Changeset dc53944
- Timestamp:
- 08/17/2014 06:21:21 PM (9 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 7.10, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, ken/inkscape-core-mods, krejzi/svn, lazarus, nosym, perl-modules, plabs/python-mods, qt5new, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226
- Children:
- feb1a649
- Parents:
- 73c535d7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/config/profile.xml
r73c535d7 rdc53944 162 162 done 163 163 164 uset script RED GREEN NORMAL 165 164 166 # End /etc/profile</literal> 165 167 EOF</userinput></screen> … … 214 216 </indexterm> 215 217 216 <para>This script adds several useful paths to the <envar>PATH</envar> and 217 <envar>PKG_CONFIG_PATH</envar> environment variables. If you want, you 218 can uncomment the last section to put a dot at the end of your path. This will 219 allow executables in the current working directory to be executed without 220 specifying a ./, however you are warned that this is generally considered a 221 security hazard.</para> 218 <para>This script adds some useful paths to the <envar>PATH</envar> and 219 can be used to customize other PATH related environment variables 220 (e.g. LD_LIBRARY_PATH, etc) that may be needed for all users.</para> 222 221 223 222 <screen role="root"><userinput>cat > /etc/profile.d/extrapaths.sh << "EOF" … … 230 229 if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then 231 230 pathprepend /usr/local/sbin 232 fi 233 234 if [ -d ~/bin ]; then 235 pathprepend ~/bin 236 fi 237 #if [ $EUID -gt 99 ]; then 238 # pathappend . 239 #fi</literal> 231 fi</literal> 240 232 EOF</userinput></screen> 241 233 … … 381 373 fi 382 374 375 unset RED GREEN NORMAL 376 383 377 # End /etc/bashrc</literal> 384 378 EOF</userinput></screen> … … 413 407 # System wide aliases and functions are in /etc/bashrc. 414 408 415 append () {416 # First remove the directory417 local IFS=':'418 local NEWPATH419 for DIR in $PATH; do420 if [ "$DIR" != "$1" ]; then421 NEWPATH=${NEWPATH:+$NEWPATH:}$DIR422 fi423 done424 425 # Then append the directory426 export PATH=$NEWPATH:$1427 }428 429 409 if [ -f "$HOME/.bashrc" ] ; then 430 410 source $HOME/.bashrc … … 432 412 433 413 if [ -d "$HOME/bin" ] ; then 434 append $HOME/bin 435 fi 436 437 unset append 414 pathprepend $HOME/bin 415 fi 416 417 # Having . in the PATH is dangerous 418 #if [ $EUID -gt 99 ]; then 419 # pathappend . 420 #fi 438 421 439 422 # End ~/.bash_profile</literal> -
x/installing/xorg7.xml
r73c535d7 rdc53944 79 79 user that will be building the xorg packages.</para> 80 80 81 <!--82 <para>The commands below83 (or similar) can be entered at the command line to compile each84 section (proto, util, lib, app, driver). The wiki links on each85 section's page contain specific commands to compile the entire group of86 packages, based on the content of the wget files.</para>87 88 <screen>bash -e #exit on all errors89 section=<replaceable><proto></replaceable>90 version=&xorg-version;91 mkdir $section92 cd $section93 94 # download and check packages95 grep -v '^#' ../${section}-${version}.wget | wget -i- -c \96 -B http://xorg.freedesktop.org/releases/individual/${section}/97 md5sum -c ../${section}-${version}.md598 99 # build packages100 for package in $(grep -v '^#' ../${section}-${version}.wget)101 do102 packagedir=$(echo $package | sed 's/.tar.bz2//')103 tar -xf $package104 cd $packagedir105 ./configure $XORG_CONFIG106 make107 make install108 cd ..109 rm -rf $packagedir110 done 2>&1 | tee -a ../xorg-${section}-compile.log #log the entire loop</screen>111 112 <para>The above shell will exit immediately on error. If it runs to113 completion, you should manually exit the shell before continuing on to114 the next set of instructions.</para>115 -->116 117 81 <sect2 id="xorg-env" xreflabel="Xorg build environment"> 118 82 <title>Setting up the Xorg Build Environment</title> 83 84 <note><para>The following instructions assume that the shell 85 startup files have been set up as described in 86 <xref linkend="postlfs-config-profile" />. 87 </para></note> 119 88 120 89 <para>First, you'll need to create a working directory:</para>
Note:
See TracChangeset
for help on using the changeset viewer.