Changeset 2758d94
- Timestamp:
- 04/11/2019 07:40:50 AM (5 years ago)
- Branches:
- ablfs-more, legacy, trunk
- Children:
- 0e4ddfa
- Parents:
- adbd09b
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/lfs.xsl
radbd09b r2758d94 84 84 <xsl:param name='local' select="'n'"/> 85 85 <xsl:param name='log-level' select="'4'"/> 86 87 <!-- The scripts root is needed for printing disk usage --> 88 <xsl:param name='script-root' select="'jhalfs'"/> 86 89 87 90 <!-- End parameters --> … … 170 173 <xsl:text>
</xsl:text> 171 174 <xsl:if test="sect2[@role='installation']"> 172 <xsl:text>cd $PKGDIR
</xsl:text> 175 <xsl:call-template name="start-script"> 176 <xsl:with-param name="order" select="$order"/> 177 </xsl:call-template> 173 178 </xsl:if> 174 179 <xsl:apply-templates select="sect2[not(@revision) or … … 193 198 </xsl:if> 194 199 <xsl:text>echo -e "\n\nTotalseconds: $SECONDS\n"
</xsl:text> 200 <xsl:if test="sect2[@role='installation']"> 201 <xsl:call-template name="end-script"/> 202 </xsl:if> 195 203 <xsl:text>exit
</xsl:text> 196 204 </exsl:document> … … 226 234 <xsl:text>mkdir -pv $PKG_DEST/{bin,boot,etc,lib,sbin} 227 235 mkdir -pv $PKG_DEST/usr/{bin,include,lib/pkgconfig,sbin} 228 mkdir -pv $PKG_DEST/usr/share/{doc,info, man}236 mkdir -pv $PKG_DEST/usr/share/{doc,info,bash-completion/completions} 229 237 mkdir -pv $PKG_DEST/usr/share/man/man{1..8} 230 238 case $(uname -m) in … … 296 304 <!-- remove empty directories --> 297 305 <xsl:text>for dir in $PKG_DEST/usr/share/man/man{1..8} \ 298 $PKG_DEST/usr/share/{doc,info,man} \ 306 $PKG_DEST/usr/share/bash-completion{/completions,} \ 307 $PKG_DEST/usr/share/{doc,info,man,} \ 299 308 $PKG_DEST/usr/lib/pkgconfig \ 300 309 $PKG_DEST/usr/{lib,bin,sbin,include} \ … … 356 365 357 366 <xsl:template match="sect1" mode="pkgmngt"> 358 <xsl:param name="dirname" select=" chapter05"/>367 <xsl:param name="dirname" select="'chapter05'"/> 359 368 <!-- The build order --> 360 <xsl:param name="order" select=" 062"/>369 <xsl:param name="order" select="'062'"/> 361 370 <!-- The file names --> 362 371 <xsl:variable name="pi-file" select="processing-instruction('dbhtml')"/> … … 372 381 set +h 373 382 set -e 374 375 cd $PKGDIR 376 </xsl:text> 383 </xsl:text> 384 <xsl:call-template name="start-script"> 385 <xsl:with-param name="order" select="concat($order,'-',position())"/> 386 </xsl:call-template> 377 387 <xsl:apply-templates 378 388 select=".//screen[not(@role) or … … 395 405 <xsl:text> 396 406 echo -e "\n\nTotalseconds: $SECONDS\n" 397 exit 407 </xsl:text> 408 <xsl:call-template name="end-script"/> 409 <xsl:text>exit 398 410 </xsl:text> 399 411 </exsl:document> … … 1121 1133 </xsl:template> 1122 1134 1135 <xsl:template name="basename"> 1136 <xsl:param name="path" select="''"/> 1137 <xsl:choose> 1138 <xsl:when test="contains($path,'/') and substring-after($path,'/')!=''"> 1139 <xsl:call-template name="basename"> 1140 <xsl:with-param name="path" select="substring-after($path,'/')"/> 1141 </xsl:call-template> 1142 </xsl:when> 1143 <xsl:when test="contains($path,'/') and substring-after($path,'/')=''"> 1144 <xsl:value-of select="substring-before($path,'/')"/> 1145 </xsl:when> 1146 <xsl:otherwise> 1147 <xsl:value-of select="$path"/> 1148 </xsl:otherwise> 1149 </xsl:choose> 1150 </xsl:template> 1151 1152 <xsl:template name="start-script"> 1153 <xsl:param name="order" select="'073'"/> 1154 <!-- get the location of the system root --> 1155 <xsl:text> 1156 if [ -h /tools ]; then 1157 ROOT=$(dirname $(readlink /tools))/ 1158 else 1159 ROOT=/ 1160 fi 1161 SRC_DIR=${ROOT}sources 1162 <!-- save the timer, so that unpacking, and du is not counted --> 1163 PREV_SEC=${SECONDS} 1164 <!-- Set variables, for use by the Makefile and package manager --> 1165 VERSION=</xsl:text><!-- needed for Makefile, and may be used in PackInstall--> 1166 <xsl:copy-of select=".//sect1info/productnumber/text()"/> 1167 <xsl:text> 1168 PKG_DEST=${SRC_DIR}/</xsl:text> 1169 <xsl:copy-of select="$order"/> 1170 <xsl:text>-</xsl:text> 1171 <xsl:copy-of select=".//sect1info/productname/text()"/> 1172 <xsl:text> 1173 <!-- Get the tarball name from sect1info --> 1174 PACKAGE=</xsl:text> 1175 <xsl:call-template name="basename"> 1176 <xsl:with-param name="path" select=".//sect1info/address/text()"/> 1177 </xsl:call-template> 1178 <xsl:text> 1179 SCRIPT_ROOT=</xsl:text> 1180 <xsl:copy-of select="$script-root"/> 1181 <xsl:text> 1182 </xsl:text> 1183 <xsl:if test = "( ../@id != 'chapter-temporary-tools' or 1184 starts-with(@id,'ch-system') ) and $pkgmngt = 'y'"> 1185 <xsl:text> 1186 source ${ROOT}${SCRIPT_ROOT}/packInstall.sh 1187 export -f packInstall</xsl:text> 1188 <xsl:if test="$wrap-install='y'"> 1189 <xsl:text> 1190 export -f wrapInstall 1191 </xsl:text> 1192 </xsl:if> 1193 </xsl:if> 1194 <!-- Get the build directory name and clean remnants of previous attempts --> 1195 <xsl:text> 1196 cd $SRC_DIR 1197 PKGDIR=$(tar -tf $PACKAGE | head -n1 | sed 's@^./@@;s@/.*@@') 1198 export PKGDIR VERSION PKG_DEST 1199 1200 if [ -d "$PKGDIR" ]; then rm -rf $PKGDIR; fi 1201 if [ -d "${PKGDIR%-*}-build" ]; then rm -rf ${PKGDIR%-*}-build; fi 1202 1203 echo "KB: $(du -skx --exclude=lost+found --exclude=/var/lib --exclude=$SCRIPT_ROOT $ROOT)" 1204 <!-- At last unpack and change directory --> 1205 tar -xf $PACKAGE 1206 cd $PKGDIR 1207 SECONDS=${PREV_SEC} 1208 1209 # Start of LFS book script 1210 </xsl:text> 1211 </xsl:template> 1212 1213 <xsl:template name="end-script"> 1214 <xsl:text> 1215 # End of LFS book script 1216 1217 echo "KB: $(du -skx --exclude=lost+found --exclude=/var/lib --exclude=$SCRIPT_ROOT $ROOT)" 1218 cd $SRC_DIR 1219 rm -rf $PKGDIR 1220 if [ -d "${PKGDIR%-*}-build" ]; then rm -rf ${PKGDIR%-*}-build; fi 1221 </xsl:text> 1222 </xsl:template> 1223 1123 1224 </xsl:stylesheet> -
LFS/master.sh
radbd09b r2758d94 117 117 # 118 118 # Find the name of the tarball and the version of the package 119 pkg_tarball=$( get_package_tarball_name $name)120 pkg_version=$( get_package_version $pkg_tarball)119 pkg_tarball=$(sed -n 's/tar -xf \(.*\)/\1/p' $file) 120 pkg_version=$(sed -n 's/VERSION=\(.*\)/\1/p' $file) 121 121 122 122 # Drop in the name of the target on a new line, and the previous target … … 126 126 # If $pkg_tarball isn't empty, we've got a package... 127 127 if [ "$pkg_tarball" != "" ] ; then 128 # Insert instructions for unpacking the package and to set the PKGDIR variable.129 LUSER_wrt_unpack "$pkg_tarball"130 128 # Always initialize the log file, since the test instructions may be 131 129 # "uncommented" by the user … … 146 144 *) LUSER_wrt_RunAsUser "$file" "$pkg_version" ;; 147 145 esac 148 149 # Remove the build directory(ies) except if the package build fails150 # (so we can review config.cache, config.log, etc.)151 if [ "$pkg_tarball" != "" ] ; then152 case "${name}" in153 *xz-utils) LUSER_RemoveBuildDirs "xz" ;;154 *) LUSER_RemoveBuildDirs "$name" ;;155 esac156 fi157 146 158 147 # Include a touch of the target name so make can check … … 217 206 # Find the tarball corresponding to our script. 218 207 # If it doesn't, we skip it in iterations rebuilds (except stripping). 219 pkg_tarball=$( get_package_tarball_name $name)220 pkg_version=$( get_package_version $pkg_tarball)208 pkg_tarball=$(sed -n 's/tar -xf \(.*\)/\1/p' $file) 209 pkg_version=$(sed -n 's/VERSION=\(.*\)/\1/p' $file) 221 210 222 211 if [[ "$pkg_tarball" = "" ]] && [[ -n "$N" ]] ; then … … 256 245 CHROOT_wrt_TouchTimestamp 257 246 fi 258 CHROOT_Unpack "$pkg_tarball"259 247 # Always initialize the log file, so that the use may reinstate a 260 248 # commented out test … … 274 262 # except if the package build fails. 275 263 if [ "$pkg_tarball" != "" ] ; then 276 case "${name}" in277 *xz-utils) CHROOT_wrt_RemoveBuildDirs "xz" ;;278 *) CHROOT_wrt_RemoveBuildDirs "$name" ;;279 esac280 264 if [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then 281 265 CHROOT_wrt_LogNewFiles "$name" … … 337 321 *bootscripts) 338 322 name="lfs-bootscripts" 339 pkg_tarball=$(get_package_tarball_name $name)340 323 if [ "${INSTALL_LOG}" = "y" ] ; then 341 324 CHROOT_wrt_TouchTimestamp 342 325 fi 343 CHROOT_Unpack "$pkg_tarball"344 326 ;; 345 327 *network-scripts) 346 328 name="lfs-network-scripts" 347 pkg_tarball=$(get_package_tarball_name $name)348 329 if [ "${INSTALL_LOG}" = "y" ] ; then 349 330 CHROOT_wrt_TouchTimestamp 350 331 fi 351 CHROOT_Unpack "$pkg_tarball"352 332 ;; 353 333 *kernel) 354 334 name="linux" 355 pkg_tarball=$(get_package_tarball_name $name)356 335 if [ "${INSTALL_LOG}" = "y" ] ; then 357 336 CHROOT_wrt_TouchTimestamp 358 337 fi 359 CHROOT_Unpack "$pkg_tarball"360 338 # If using optimizations, use MAKEFLAGS (unless blacklisted) 361 339 # no setting of CFLAGS and friends. … … 377 355 378 356 case "${this_script}" in 379 *bootscripts ) CHROOT_wrt_RemoveBuildDirs "dummy"357 *bootscripts|*network-scripts|*kernel) 380 358 if [ "${INSTALL_LOG}" = "y" ] ; then 381 359 CHROOT_wrt_LogNewFiles "$name" 382 360 fi ;; 383 *network-scripts) CHROOT_wrt_RemoveBuildDirs "dummy" 384 if [ "${INSTALL_LOG}" = "y" ] ; then 385 CHROOT_wrt_LogNewFiles "$name" 386 fi ;; 387 *kernel) CHROOT_wrt_RemoveBuildDirs "dummy" 388 if [ "${INSTALL_LOG}" = "y" ] ; then 389 CHROOT_wrt_LogNewFiles "$name" 390 fi ;; 391 esac 392 361 esac 393 362 # Include a touch of the target name so make can check 394 363 # if it's already been made. -
TODO
radbd09b r2758d94 6 6 ------------- 7 7 8 - Add a way to choose the network configuration (ip, gateway, etc).9 8 - [CLFS] Add a switch to choose between static or DHCP network configuration 10 9 for CLFS. … … 14 13 ------------ 15 14 16 - Add a way to choose the network configuration (ip, gateway, etc).17 15 - [CLFS] Add a switch to choose between static or DHCP network configuration 18 16 for CLFS. -
common/libs/func_book_parser
radbd09b r2758d94 194 194 --stringparam local "$LOCAL" \ 195 195 --stringparam log-level "$LOG_LEVEL" \ 196 --stringparam script-root "$SCRIPT_ROOT" \ 196 197 --output ./${PROGNAME}-commands/ \ 197 198 $XSL \ -
common/libs/func_wrt_Makefile
radbd09b r2758d94 181 181 ${NO_PROGRESS} @export BASHBIN=\$(SHELL) && \$(SHELL) progress_bar.sh \$@ \$\$PPID & 182 182 @echo "\$(nl_)\`date\`\$(nl_)" >logs/\$@$version 183 @ \$(PRT_DU) >>logs/\$@$version183 @ : > envars 184 184 EOF 185 185 ) >> $MKFILE.tmp … … 202 202 ${NO_PROGRESS} @export BASHBIN=\$(SHELL) && \$(SHELL) progress_bar.sh \$@ \$\$PPID & 203 203 @echo "\$(nl_)\`date\`\$(nl_)" >logs/\$@$version 204 @ \$(PRT_DU_CR) >>logs/\$@$version204 @ : > envars 205 205 EOF 206 206 ) >> $MKFILE.tmp … … 228 228 ( 229 229 cat << EOF 230 @\$(PRT_DU) >>logs/\$@$version 230 231 @\$(call unpack,$FILE) 231 232 @\$(call get_pkg_root_LUSER) … … 247 248 ) >> $MKFILE.tmp 248 249 fi 249 ( 250 cat << EOF 250 251 ( 252 cat << EOF 253 @\$(PRT_DU_CR) >>logs/\$@$version 251 254 @\$(call unpack2,$FILE) 252 255 @\$(call get_pkg_root2) … … 337 340 cat << EOF 338 341 @source ~/.bashrc && \\ 339 \$(CMDSDIR)/`dirname $file`/\$@ >> logs/\$@$version 2>&1 && \\340 \$(PRT_DU) >>logs/\$@$version342 \$(CMDSDIR)/`dirname $file`/\$@ >> \$(LOGDIR)/\$@$version 2>&1 && \\ 343 if [ "${PROGNAME}" != lfs ]; then \$(PRT_DU) >>logs/\$@$version; fi 341 344 EOF 342 345 ) >> $MKFILE.tmp … … 354 357 cat << EOF 355 358 @source envars && \\ 356 \$(crCMDSDIR)/`dirname $file`/\$@ >> logs/\$@$version 2>&1 && \\357 \$(PRT_DU_CR) >>logs/\$@$version359 \$(crCMDSDIR)/`dirname $file`/\$@ >>\$(crLOGDIR)/\$@$version 2>&1 && \\ 360 if [ "${PROGNAME}" != lfs ]; then \$(PRT_DU_CR) >>logs/\$@$version; fi 358 361 EOF 359 362 ) >> $MKFILE.tmp -
pkgmngt/packageManager.xml.pacman
radbd09b r2758d94 9 9 it in html --> 10 10 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 11 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" > 11 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ 12 <!ENTITY libarchive-version "3.1.2"> 13 <!ENTITY curl-version "7.39.0"> 14 <!ENTITY pacman-version "4.1.2"> 15 <!ENTITY libarchive-url "http://www.libarchive.org/downloads/libarchive-&libarchive-version;.tar.gz"> 16 <!ENTITY curl-url "http://curl.haxx.se/download/curl-&curl-version;.tar.lzma"> 17 <!ENTITY pacman-url "https://sources.archlinux.org/other/pacman/pacman-&pacman-version;.tar.gz"> 18 <!ENTITY curl-md5 "e9aa6dec29920eba8ef706ea5823bad7"> 19 <!ENTITY libarchive-md5 "efad5a503f66329bb9d2f4308b5de98a"> 20 <!ENTITY pacman-md5 "063c8b0ff6bdf903dc235445525627cd"> 21 ]> 22 12 23 13 24 <!-- The first markup should be the one defined in the DOCTYPE DECLARATION --> … … 19 30 Do not change anything, except the url and the md5 checksum. --> 20 31 <sect1 id="package"> 21 <para>Download: <ulink url="http://curl.haxx.se/download/curl-7.39.0.tar.lzma"/></para> 22 <para>MD5 sum: <literal>e9aa6dec29920eba8ef706ea5823bad7</literal></para> 23 <para>Download: <ulink url="http://www.libarchive.org/downloads/libarchive-3.1.2.tar.gz"/></para> 24 <para>MD5 sum: <literal>efad5a503f66329bb9d2f4308b5de98a</literal></para> 25 <para>Download: <ulink url="https://sources.archlinux.org/other/pacman/pacman-4.1.2.tar.gz"/></para> 26 <para>MD5 sum: <literal>063c8b0ff6bdf903dc235445525627cd</literal></para> 32 <?dbhtml filename="package.html"?> 33 34 <title>All Packages</title> 35 <para>Download: <ulink url="&curl-url;"/></para> 36 <para>MD5 sum: <literal>&curl-md5;</literal></para> 37 <para>Download: <ulink url="&libarchive-url;"/></para> 38 <para>MD5 sum: <literal>&libarchive-md5;</literal></para> 39 <para>Download: <ulink url="&pacman-url;"/></para> 40 <para>MD5 sum: <literal>&pacman-md5;</literal></para> 27 41 </sect1> 28 42 … … 36 50 <!-- Do not change the next line. The name of the scriptlet will be taken 37 51 from the dbhtml instruction: it is the name of the file less .html, with 38 xxx-x-added before (x, digits). Furthermore, the tarball name must be in the form 39 name_x.y.z(.extension) or name-x.y.z(.extension) if the dbhtml 40 instruction contains file="name.html" --> 52 xxx-x-added before (x, digits).--> 41 53 <sect1 id="ch-tools-libarchive" role="wrap"> 42 54 <?dbhtml filename="libarchive.html"?> 43 <sect2 role="installation"> 55 56 <sect1info condition="script"> 57 <productname>libarchive</productname> 58 <productnumber>&libarchive-version;</productnumber> 59 <address>&libarchive-url;</address> 60 </sect1info> 61 62 <title>Libarchive-&libarchive-version;</title> 63 64 <sect2 role="installation"> 65 <title/> 44 66 <screen><userinput remap="configure">./configure --prefix=/tools \ 45 67 --without-bz2lib \ … … 52 74 53 75 </sect1> 76 54 77 <sect1 id="ch-tools-curl" role="wrap"> 55 78 <?dbhtml filename="curl.html"?> 56 <sect2 role="installation"> 79 80 <sect1info condition="script"> 81 <productname>curl</productname> 82 <productnumber>&curl-version;</productnumber> 83 <address>&curl-url;</address> 84 </sect1info> 85 86 <title>Curl-&curl-version;</title> 87 88 <sect2 role="installation"> 89 <title/> 57 90 <screen><userinput remap="configure">./configure --prefix=/tools \ 58 91 --disable-static</userinput></screen> … … 65 98 <sect1 id="ch-tools-pkgmngt" role="wrap"> 66 99 <?dbhtml filename="pacman.html"?> 67 <!-- next line mandatory without change, but feel free to add any title, 68 other sect2 (with different role), sectinfo and so on --> 69 <sect2 role="installation"> 100 101 <sect1info condition="script"> 102 <productname>pacman</productname> 103 <productnumber>&pacman-version;</productnumber> 104 <address>&pacman-url;</address> 105 </sect1info> 106 107 <title>Pacman-&pacman-version;</title> 108 109 <sect2 role="installation"> 110 <title/> 70 111 <!-- You can use any number of remap="pre", "configure", "make", "test", "install" 71 112 <screen><userinput remap="something">Instructions</userinput></screen>. … … 111 152 <sect1 id="ch-pkgmngt-creatingdirs"> 112 153 113 <!-- Put the create dir intructions there. feel free to add 114 any explaining <title>Title</title> and <para>explanations</para> --> 154 <title>Creating Directories</title> 155 115 156 <screen><userinput>mkdir -pv /var/{lib/{packages,pacman},cache/pkg}</userinput></screen> 116 157 … … 118 159 <!-- Same for files. Do not change the following line --> 119 160 <sect1 id="ch-pkgmngt-createfiles"> 161 162 <title>Creating Essential Files</title> 120 163 121 164 <para>No file?</para> … … 132 175 <sect1 id="ch-system-libarchive" role="wrap"> 133 176 <?dbhtml filename="libarchive.html"?> 134 <sect2 role="installation"> 177 178 <sect1info condition="script"> 179 <productname>libarchive</productname> 180 <productnumber>&libarchive-version;</productnumber> 181 <address>&libarchive-url;</address> 182 </sect1info> 183 184 <title>Libarchive-&libarchive-version;</title> 185 186 <sect2 role="installation"> 187 <title/> 135 188 <screen><userinput remap="configure">./configure --prefix=/usr \ 136 189 --disable-static</userinput></screen> … … 142 195 <sect1 id="ch-system-curl" role="wrap"> 143 196 <?dbhtml filename="curl.html"?> 144 <sect2 role="installation"> 197 198 <sect1info condition="script"> 199 <productname>curl</productname> 200 <productnumber>&curl-version;</productnumber> 201 <address>&curl-url;</address> 202 </sect1info> 203 204 <title>Curl-&curl-version;</title> 205 206 <sect2 role="installation"> 207 <title/> 145 208 <screen><userinput remap="configure">./configure --prefix=/usr \ 146 209 --disable-static \ … … 149 212 <screen><userinput remap="install">make DESTDIR=$PKG_DEST install 150 213 find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \; 151 install -v -d -m755 $PKG_DEST/usr/share/doc/curl- 7.39.0152 cp -v -R docs/* $PKG_DEST/usr/share/doc/curl- 7.39.0</userinput></screen>214 install -v -d -m755 $PKG_DEST/usr/share/doc/curl-&curl-version; 215 cp -v -R docs/* $PKG_DEST/usr/share/doc/curl-&curl-version;</userinput></screen> 153 216 </sect2> 154 217 … … 157 220 <?dbhtml filename="pacman.html"?> 158 221 159 <sect2 role="installation"> 222 <sect1info condition="script"> 223 <productname>pacman</productname> 224 <productnumber>&pacman-version;</productnumber> 225 <address>&pacman-url;</address> 226 </sect1info> 227 228 <title>Pacman-&pacman-version;</title> 229 230 <sect2 role="installation"> 231 <title/> 160 232 161 233 <screen><userinput remap="configure">./configure --prefix=/usr \ -
pkgmngt/packageManager.xml.porg
radbd09b r2758d94 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" > 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ 4 <!ENTITY porg-version "0.10"> 5 <!ENTITY porg-url "https://sourceforge.net/projects/porg/files/porg-&porg-version;.tar.gz"> 6 <!ENTITY porg-md5 "2eceb8a73bb188dbb06b12d90cabdbb4"> 7 ]> 4 8 5 9 <article> … … 7 11 <sect1 id="package"> 8 12 <title>Package Information</title> 9 <para>Download: <ulink url=" https://sourceforge.net/projects/porg/files/porg-0.10.tar.gz"/></para>10 <para>MD5 sum: <literal> 2eceb8a73bb188dbb06b12d90cabdbb4</literal></para>13 <para>Download: <ulink url="&porg-url;"/></para> 14 <para>MD5 sum: <literal>&porg-md5;</literal></para> 11 15 </sect1> 12 16 13 17 <sect1 id="ch-tools-pkgmngt" role="wrap"> 14 18 <?dbhtml filename="porg.html"?> 19 20 <sect1info condition="script"> 21 <productname>porg</productname> 22 <productnumber>&porg-version;</productnumber> 23 <address>&porg-url;</address> 24 </sect1info> 25 15 26 <title>Porg in tools</title> 16 27 <sect2 role="installation"> … … 60 71 <sect1 id="ch-system-pkgmngt" role="wrap"> 61 72 <?dbhtml filename="porg.html"?> 73 74 <sect1info condition="script"> 75 <productname>porg</productname> 76 <productnumber>&porg-version;</productnumber> 77 <address>&porg-url;</address> 78 </sect1info> 79 62 80 <title>Final Porg</title> 63 81 <sect2 role="installation"> -
pkgmngt/packageManager.xml.template
radbd09b r2758d94 32 32 <!-- Do not change the next line. The name of the scriptlet will be taken 33 33 from the dbhtml instruction: it is the name of the file less .html, with 34 xxx-x-added before (x, digits). Furthermore, the tarball name must be in the form 35 name_x.y.z(.extension) or name-x.y.z(.extension) if the dbhtml 36 instruction contains file="name.html" --> 34 xxx-x-added before (x, digits). --> 37 35 <sect1 id="ch-tools-pkgmngt" role="wrap"> 38 36 <?dbhtml filename="dpkg.html"?> 37 <!-- the next lines are now mandatory for unpacking the tarball at the 38 beginning of the scriptlet --> 39 <sect1info condition="script"> 40 <productname>dpkg</productname> 41 <productnumber>x.y.z</productnumber><!-- version --> 42 <address>http://where/is/your/package</address><!-- url --> 43 </sect1info> 39 44 <!-- next line mandatory without change, but feel free to add any title, 40 45 other sect2 (with different role), sectinfo and so on --> … … 101 106 <!-- Last but not least : Final instructions for installing the 102 107 package manager at the end of chapter 6. Again, the scriptlet file name is 103 taken from the dbhtml instruction, with digits added before and .html cut 104 and the tarball name is formed from this name + version. So the file 105 here _must_ be the same as in chapter 5. If rendering in html, both 106 sets of instructions end up in the same file, which is usually not a problem. 108 taken from the dbhtml instruction, with digits added before and .html cut. 107 109 --> 108 110 <sect1 id="ch-system-pkgmngt" role="wrap"> 109 111 <?dbhtml filename="dpkg.html"?> 112 113 <!-- the next lines are now mandatory for unpacking the tarball at the 114 beginning of the scriptlet --> 115 <sect1info condition="script"> 116 <productname>dpkg</productname><!-- for example --> 117 <productnumber>x.y.z</productnumber><!-- version --> 118 <address>http://where/is/your/package</address><!-- url --> 119 </sect1info> 110 120 111 121 <sect2 role="installation">
Note:
See TracChangeset
for help on using the changeset viewer.