Changeset dd8be9e


Ignore:
Timestamp:
08/18/2014 10:48:37 AM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
systemd-11177
Children:
29b3453
Parents:
d312fbb3
Message:

Merge one forgotten commit.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13944 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/profile-systemd.xml

    rd312fbb3 rdd8be9e  
    162162done
    163163
     164uset script RED GREEN NORMAL
     165
    164166# End /etc/profile</literal>
    165167EOF</userinput></screen>
     
    214216      </indexterm>
    215217
    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>
    222221
    223222<screen role="root"><userinput>cat &gt; /etc/profile.d/extrapaths.sh &lt;&lt; "EOF"
     
    230229if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then
    231230        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>
     231fi</literal>
    240232EOF</userinput></screen>
    241233
     
    402394fi
    403395
     396unset RED GREEN NORMAL
     397
    404398# End /etc/bashrc</literal>
    405399EOF</userinput></screen>
     
    434428# System wide aliases and functions are in /etc/bashrc.
    435429
    436 append () {
    437   # First remove the directory
    438   local IFS=':'
    439   local NEWPATH
    440   for DIR in $PATH; do
    441      if [ "$DIR" != "$1" ]; then
    442        NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
    443      fi
    444   done
    445 
    446   # Then append the directory
    447   export PATH=$NEWPATH:$1
    448 }
    449 
    450430if [ -f "$HOME/.bashrc" ] ; then
    451431  source $HOME/.bashrc
     
    453433
    454434if [ -d "$HOME/bin" ] ; then
    455   append $HOME/bin
    456 fi
    457 
    458 unset append
     435  pathprepend $HOME/bin
     436fi
     437
     438# Having . in the PATH is dangerous
     439#if [ $EUID -gt 99 ]; then
     440#  pathappend .
     441#fi
    459442
    460443# End ~/.bash_profile</literal>
  • x/installing/xorg7.xml

    rd312fbb3 rdd8be9e  
    7979  user that will be building the xorg packages.</para>
    8080
    81   <!--
    82   <para>The commands below
    83   (or similar) can be entered at the command line to compile each
    84   section (proto, util, lib, app, driver).  The wiki links on each
    85   section's page contain specific commands to compile the entire group of
    86   packages, based on the content of the wget files.</para>
    87 
    88 <screen>bash -e #exit on all errors
    89 section=<replaceable>&lt;proto&gt;</replaceable>
    90 version=&xorg-version;
    91 mkdir $section
    92 cd $section
    93 
    94 # download and check packages
    95 grep -v '^#' ../${section}-${version}.wget | wget -i- -c \
    96     -B http://xorg.freedesktop.org/releases/individual/${section}/
    97 md5sum -c ../${section}-${version}.md5
    98 
    99 # build packages
    100 for package in $(grep -v '^#' ../${section}-${version}.wget)
    101 do
    102   packagedir=$(echo $package | sed 's/.tar.bz2//')
    103   tar -xf $package
    104   cd $packagedir
    105   ./configure $XORG_CONFIG
    106   make
    107   make install
    108   cd ..
    109   rm -rf $packagedir
    110 done 2&gt;&amp;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 to
    113   completion, you should manually exit the shell before continuing on to
    114   the next set of instructions.</para>
    115 -->
    116 
    11781  <sect2 id="xorg-env" xreflabel="Xorg build environment">
    11882    <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>
    11988
    12089    <para>First, you'll need to create a working directory:</para>
Note: See TracChangeset for help on using the changeset viewer.