From d3edf27c9ef5ed65b2756f4333c78fab548cf45e Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 12 Jun 2004 23:10:23 +0000 Subject: [PATCH] Update to template for new XML git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2305 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- template/README | 6 +-- template/newitem | 37 -------------- template/template-config.xml | 15 ------ template/template-desc.xml | 18 ------- template/template-exp.xml | 7 --- template/template-inst.xml | 9 ---- template/template-intro.xml | 22 --------- template/template.ent | 12 ----- template/template.xml | 94 ++++++++++++++++++++++++++++++++++-- 9 files changed, 91 insertions(+), 129 deletions(-) delete mode 100644 template/newitem delete mode 100644 template/template-config.xml delete mode 100644 template/template-desc.xml delete mode 100644 template/template-exp.xml delete mode 100644 template/template-inst.xml delete mode 100644 template/template-intro.xml delete mode 100644 template/template.ent diff --git a/template/README b/template/README index 6092ad1e8b..9eb4162b3f 100644 --- a/template/README +++ b/template/README @@ -1,6 +1,4 @@ -These files are generic templates. +This is a generic template. -The newitem script makes a copy of the files and changes all occurances -of template in them to the package name to save a lot of tedious work. +Makes a copy of the file and edit as needed. -Not all will always be needed diff --git a/template/newitem b/template/newitem deleted file mode 100644 index 5075063487..0000000000 --- a/template/newitem +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -# Copies the template files and replaces template with the supplied package -# name, greatly simplifying the process of adding a new package. - -if [ -z "$1" ] -then - echo "Creates template files for a package and fills in the package name." - echo "Usage: $0 " - echo - echo "Note that if you want to create the package Glib, you should" - echo "call the script as: '$0 Glib glib' so that the filenames are in" - echo "lower case. If you only specify the first option, it is used" - echo "for both the written and filenames." - echo "Note also that *all* filenames in BLFS should be lower-case only" - exit 1 -fi - -WRITTENNAME=$1 - -if [ -z "$2" ] -then - FILENAME=$WRITTENNAME -else - FILENAME=$2 -fi - -pushd `dirname $0` -TEMPLDIR=`pwd` -popd - -for i in $TEMPLDIR/template* -do - NEWFILE=`echo $i | sed s@$TEMPLDIR/template@$FILENAME@` - echo $NEWFILE - sed s/template/$WRITTENNAME/g $i > $NEWFILE -done diff --git a/template/template-config.xml b/template/template-config.xml deleted file mode 100644 index 028becbd36..0000000000 --- a/template/template-config.xml +++ /dev/null @@ -1,15 +0,0 @@ - -Configuring <application>template</application> - -Config files -List of config files - - -Configuration Information - -USERINPUT GOES HERE Blah blah blah about config. - - - - - diff --git a/template/template-desc.xml b/template/template-desc.xml deleted file mode 100644 index c2b0a2d715..0000000000 --- a/template/template-desc.xml +++ /dev/null @@ -1,18 +0,0 @@ - -Contents - -The template package contains -LISTOFEXEC, LISTOFFILES. - - - -Description - -item1 -item1 does this - -item2 -item2 does that - - - diff --git a/template/template-exp.xml b/template/template-exp.xml deleted file mode 100644 index ee5ce80b07..0000000000 --- a/template/template-exp.xml +++ /dev/null @@ -1,7 +0,0 @@ - -Command explanations - -COMMAND: This command does something. - - - diff --git a/template/template-inst.xml b/template/template-inst.xml deleted file mode 100644 index 1401bed258..0000000000 --- a/template/template-inst.xml +++ /dev/null @@ -1,9 +0,0 @@ - -Installation of <application>template</application> - -Install template by running the following commands: - -./configure - - - diff --git a/template/template-intro.xml b/template/template-intro.xml deleted file mode 100644 index 80d2111ee9..0000000000 --- a/template/template-intro.xml +++ /dev/null @@ -1,22 +0,0 @@ - -Introduction to <application>template</application> - -The template package contains... This is useful for... - -Package information - -Download (HTTP): -Download (FTP): -Download size: &template-size; -Estimated Disk space required: &template-buildsize; -Estimated build time: &template-time; - - -<application>template</application> dependencies -Required -DEPENDENCE LIST -Optional -OPTIONAL LIST - - - diff --git a/template/template.ent b/template/template.ent deleted file mode 100644 index b9cca783a4..0000000000 --- a/template/template.ent +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/template/template.xml b/template/template.xml index c6985935f6..6f227799b4 100644 --- a/template/template.xml +++ b/template/template.xml @@ -1,12 +1,96 @@ + + + %general-entities; + + + + + + + + +]> + template-&template-version; -&template-intro; -&template-inst; -&template-exp; -&template-config; -&template-desc; + + +Introduction to <application>template</application> + +The template package contains... This is useful for... + +Package information + +Download (HTTP): +Download (FTP): +Download size: &template-size; +Estimated Disk space required: &template-buildsize; +Estimated build time: &template-time; + + +<application>template</application> dependencies +Required +DEPENDENCE LIST +Optional +OPTIONAL LIST + + + + + +Installation of <application>template</application> + +Install template by running the following commands: + +./configure + + + + +Command explanations + +COMMAND: This command does something. + + + + +Configuring <application>template</application> + +Config files +List of config files + + +Configuration Information + +USERINPUT GOES HERE Blah blah blah about config. + + + + + + +Contents + +The template package contains +LISTOFEXEC, LISTOFFILES. + + + +Description + +item1 +item1 does this + +item2 +item2 does that + +