Merged r2182 from trunk.

This commit is contained in:
Manuel Canales Esparcia 2005-11-16 18:24:25 +00:00
parent 316b8d79e5
commit 7178cdc1b7
3 changed files with 54 additions and 18 deletions

View file

@ -1,4 +1,9 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY % general-entities SYSTEM "FAKEDIR/general.ent">
%general-entities;
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common" xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl" extension-element-prefixes="exsl"
@ -12,6 +17,9 @@
<!-- Run toolchain test suites? --> <!-- Run toolchain test suites? -->
<xsl:param name="toolchaintest" select="1"/> <xsl:param name="toolchaintest" select="1"/>
<!-- Install vim-lang package? -->
<xsl:param name="vim-lang" select="1"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:apply-templates select="//sect1"/> <xsl:apply-templates select="//sect1"/>
</xsl:template> </xsl:template>
@ -65,6 +73,9 @@
@id='ch-tools-adjusting' or @id='ch-tools-adjusting' or
@id='ch-system-readjusting'"> @id='ch-system-readjusting'">
<xsl:text>cd $PKGDIR&#xA;</xsl:text> <xsl:text>cd $PKGDIR&#xA;</xsl:text>
<xsl:if test="@id='ch-system-vim' and $vim-lang = '1'">
<xsl:text>tar -xvf ../vim-&vim-version;-lang.*&#xA;</xsl:text>
</xsl:if>
</xsl:if> </xsl:if>
<xsl:apply-templates select=".//para/userinput | .//screen"/> <xsl:apply-templates select=".//para/userinput | .//screen"/>
<xsl:text>exit</xsl:text> <xsl:text>exit</xsl:text>

25
jhalfs
View file

@ -64,6 +64,8 @@ Options:
/etc/fstab file with dummy values is /etc/fstab file with dummy values is
created. created.
--no-vim-lang don't install the optional vim-lang package
-C, --kernel-config FILE use the kernel configuration file specified -C, --kernel-config FILE use the kernel configuration file specified
in FILE to build the kernel. If the file is in FILE to build the kernel. If the file is
not found, or if not specified, the kernel not found, or if not specified, the kernel
@ -105,12 +107,6 @@ get_book() {
exit 1" exit 1"
cd $JHALFSDIR cd $JHALFSDIR
# Test to make sure the LFS version is set
if [ -z $LFSVRS ] ; then LFSVRS=development ; fi
# Set the book's sources directory
if [ -z $BOOK ] ; then BOOK=lfs-$LFSVRS ; fi
if [ -z $WC ] ; then if [ -z $WC ] ; then
echo -n "Downloading the LFS Book, version $LFSVRS... " echo -n "Downloading the LFS Book, version $LFSVRS... "
@ -159,8 +155,8 @@ extract_commands() {
# Dump the commands in shell script form from the LFS book. # Dump the commands in shell script form from the LFS book.
xsltproc --nonet --xinclude --stringparam testsuite $TEST \ xsltproc --nonet --xinclude --stringparam testsuite $TEST \
--stringparam toolchaintest $TOOLCHAINTEST -o ./commands/ \ --stringparam toolchaintest $TOOLCHAINTEST --stringparam vim-lang $VIMLANG \
$XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 -o ./commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
# Make the scripts executable. # Make the scripts executable.
chmod -R +x $JHALFSDIR/commands chmod -R +x $JHALFSDIR/commands
@ -171,6 +167,10 @@ extract_commands() {
grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' -e 's@">@"@' \ grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' -e 's@">@"@' \
-e '/generic/d' >> packages -e '/generic/d' >> packages
echo `grep "glibc" packages | sed 's@glibc@&-linuxthreads@'` >> packages echo `grep "glibc" packages | sed 's@glibc@&-linuxthreads@'` >> packages
# Download the vim-lang package if it must be installed
if [ "$VIMLANG" = "1" ] ; then
echo `grep "vim" packages | sed 's@vim@&-lang@'` >> packages
fi
echo `grep "udev-config-file" $BOOK/general.ent | sed -e 's@<!ENTITY @@' -e 's@">@"@'` >> packages echo `grep "udev-config-file" $BOOK/general.ent | sed -e 's@<!ENTITY @@' -e 's@">@"@'` >> packages
# Download the module-init-tools-testsuite package only # Download the module-init-tools-testsuite package only
# if the test suite will be run. # if the test suite will be run.
@ -262,6 +262,9 @@ get_sources() {
VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'` VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'`
if [ "$PKG" = "tcl" ] ; then if [ "$PKG" = "tcl" ] ; then
FILE="$PKG$VRS-src.tar.bz2" FILE="$PKG$VRS-src.tar.bz2"
elif [ "$PKG" = "vim-lang" ] ; then
PKG="vim"
FILE="vim-$VRS-lang.tar.bz2"
elif [ "$PKG" = "udev-config" ] ; then elif [ "$PKG" = "udev-config" ] ; then
PKG="udev" PKG="udev"
FILE="$VRS" FILE="$VRS"
@ -919,6 +922,8 @@ while test $# -gt 0 ; do
--no-toolchain-test ) TOOLCHAINTEST=0 ;; --no-toolchain-test ) TOOLCHAINTEST=0 ;;
--no-vim-lang ) VIMLANG=0 ;;
--page_size ) --page_size )
test $# = 1 && eval "$exit_missing_arg" test $# = 1 && eval "$exit_missing_arg"
shift shift
@ -989,7 +994,9 @@ if [ -z $DL ] ; then
fi fi
[[ ! -d $JHALFSDIR ]] && mkdir -pv $JHALFSDIR [[ ! -d $JHALFSDIR ]] && mkdir -pv $JHALFSDIR
[[ "$PWD" != "$JHALFSDIR" ]] && cp -v $FILES $JHALFSDIR/ [[ "$PWD" != "$JHALFSDIR" ]] && cp -v $FILES $JHALFSDIR/ && \
sed -e 's/FAKEDIR/'$BOOK'/' $XSL > $JHALFSDIR/dump-lfs-scripts.xsl && \
export XSL=$JHALFSDIR/dump-lfs-scripts.xsl
[[ ! -d $LOGDIR ]] && mkdir -v $LOGDIR [[ ! -d $LOGDIR ]] && mkdir -v $LOGDIR
>$LOGDIR/$LOG >$LOGDIR/$LOG

View file

@ -6,20 +6,11 @@
declare -r SVN="svn://svn.linuxfromscratch.org" declare -r SVN="svn://svn.linuxfromscratch.org"
declare -r HTTP=http://ftp.lfs-matrix.net/pub/lfs/conglomeration declare -r HTTP=http://ftp.lfs-matrix.net/pub/lfs/conglomeration
declare -r XSL=dump-lfs-scripts.xsl
declare -r LOG=000-jhalfs.log declare -r LOG=000-jhalfs.log
#--- Files that will be copied to $JHALFSDIR
FILES="functions dump-lfs-scripts.xsl"
#--- Mount point for the build #--- Mount point for the build
BUILDDIR=/mnt/lfs BUILDDIR=/mnt/lfs
#--- Working directories
JHALFSDIR=$BUILDDIR/jhalfs
LOGDIR=$JHALFSDIR/logs
MKFILE=$JHALFSDIR/Makefile
#--- Download the source packages 0(no)/1(yes) #--- Download the source packages 0(no)/1(yes)
HPKG=0 HPKG=0
@ -38,6 +29,33 @@ PAGE=letter
#--- set default timezone. #--- set default timezone.
TIMEZONE=Europe/London TIMEZONE=Europe/London
#--- install the optional vim-lang package 0(no)/1(yes)
VIMLANG=1
#--- Location of fstab file (if empty, a template is created)
FSTAB=
#--- Location of kernel config file (if the kernel is to be compiled) #--- Location of kernel config file (if the kernel is to be compiled)
CONFIG= CONFIG=
#==== INTERNAL VARIABLES ====
# Don't edit it unless you know what you are doing
#--- Default stylesheet
XSL=dump-lfs-scripts.xsl
#--- Files that will be copied to $JHALFSDIR
FILES="functions"
#--- Working directories
JHALFSDIR=$BUILDDIR/jhalfs
LOGDIR=$JHALFSDIR/logs
MKFILE=$JHALFSDIR/Makefile
#--- Book version
LFSVRS=development
#--- Book's sources directory
BOOK=lfs-$LFSVRS