Changeset ff7c7bf8
- Timestamp:
- 09/03/2014 05:41:32 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:
- a9e8da9
- Parents:
- cf694de
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
general/genlib/libpaper.xml
rcf694de rff7c7bf8 97 97 98 98 <screen role="root"><userinput>make install && 99 mkdir -v /etc/libpaper.d 100 </userinput></screen> 99 mkdir -v /etc/libpaper.d && 100 cat > /usr/bin/run-parts << "EOF" 101 #!/bin/sh 102 # run-parts: Runs all the scripts found in a directory. 103 # from Slackware, by Patrick J. Volkerding with ideas borrowed 104 # from the Red Hat and Debian versions of this utility. 105 106 # keep going when something fails 107 set +e 108 109 if [ $# -lt 1 ]; then 110 echo "Usage: run-parts <directory>" 111 exit 1 112 fi 113 114 if [ ! -d $1 ]; then 115 echo "Not a directory: $1" 116 echo "Usage: run-parts <directory>" 117 exit 1 118 fi 119 120 # There are several types of files that we would like to 121 # ignore automatically, as they are likely to be backups 122 # of other scripts: 123 IGNORE_SUFFIXES="~ ^ , .bak .new .rpmsave .rpmorig .rpmnew .swp" 124 125 # Main loop: 126 for SCRIPT in $1/* ; do 127 # If this is not a regular file, skip it: 128 if [ ! -f $SCRIPT ]; then 129 continue 130 fi 131 # Determine if this file should be skipped by suffix: 132 SKIP=false 133 for SUFFIX in $IGNORE_SUFFIXES ; do 134 if [ ! "$(basename $SCRIPT $SUFFIX)" = "$(basename $SCRIPT)" ]; then 135 SKIP=true 136 break 137 fi 138 done 139 if [ "$SKIP" = "true" ]; then 140 continue 141 fi 142 # If we've made it this far, then run the script if it's executable: 143 if [ -x $SCRIPT ]; then 144 $SCRIPT || echo "$SCRIPT failed." 145 fi 146 done 147 148 exit 0 149 EOF 150 chmod -v -m755 /usr/bin/run-parts</userinput></screen> 101 151 102 152 </sect2> … … 112 162 into this directory.</para> 113 163 164 <para><command>cat > /usr/bin/run-parts << "EOF"</command> : 165 <filename>paperconfig</filename> is a script which will invoke 166 <command>run-parts</command> if 167 <filename class="directory">/etc/libpaper.d</filename> exists. No other BLFS 168 package installs this, so we create it here.</para> 169 114 170 </sect2> 115 171 … … 123 179 system paper size. Issue the following command as the 124 180 <systemitem class="username">root</systemitem> user to set this to 125 'A4' (libpaper expects the lowercase form). You may wish181 'A4' (libpaper prefers the lowercase form). You may wish 126 182 to use a different size, such as letter.</para> 127 183 … … 144 200 <seglistitem> 145 201 <seg> 146 paperconf, paperconfig 202 paperconf, paperconfig, run-parts 147 203 </seg> 148 204 <seg> … … 180 236 </varlistentry> 181 237 238 <varlistentry id="run-parts"> 239 <term><command>run-parts</command></term> 240 <listitem> 241 <para>run all the scripts found in a directory.</para> 242 <indexterm zone="libpaper run-parts"> 243 <primary sortas="b-run-parts">run-parts</primary> 244 </indexterm> 245 </listitem> 246 </varlistentry> 247 182 248 <varlistentry id="libpaper-lib"> 183 249 <term><filename class="libraryfile">libpaper.so</filename></term> -
introduction/welcome/changelog.xml
rcf694de rff7c7bf8 48 48 <para>September 3rd, 2014</para> 49 49 <itemizedlist> 50 <listitem> 51 <para>[ken] - add run-parts script (from Slackware) to the 52 libpaper page - thanks to akhiezer for his help.</para> 53 </listitem> 50 54 <listitem> 51 55 <para>[fernando] - LXDM-0.5.0 fixes: typo and some rewriting. Fix
Note:
See TracChangeset
for help on using the changeset viewer.