Fixed a typo in my name.
This commit is contained in:
parent
9e406b5e3f
commit
fbb6b78eca
1 changed files with 9 additions and 9 deletions
18
jhalfs
18
jhalfs
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
version="
|
version="
|
||||||
jhalfs 0.1
|
jhalfs 0.1
|
||||||
|
@ -112,7 +112,7 @@ get_book() {
|
||||||
test `type -p svn` || eval "echo \"This feature requires Subversion.\"
|
test `type -p svn` || eval "echo \"This feature requires Subversion.\"
|
||||||
exit 1"
|
exit 1"
|
||||||
cd $JHALFSDIR
|
cd $JHALFSDIR
|
||||||
|
|
||||||
# Test to make sure the LFS version is set
|
# Test to make sure the LFS version is set
|
||||||
if [ -z $LFSVRS ] ; then LFSVRS=development ; fi
|
if [ -z $LFSVRS ] ; then LFSVRS=development ; fi
|
||||||
echo -n "Downloading the LFS Book, version $LFSVRS... "
|
echo -n "Downloading the LFS Book, version $LFSVRS... "
|
||||||
|
@ -131,7 +131,7 @@ get_book() {
|
||||||
extract_commands
|
extract_commands
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ $LFSVRS = development ] ; then
|
if [ $LFSVRS = development ] ; then
|
||||||
svn co $SVN/LFS/trunk/BOOK lfs-$LFSVRS >>$JHALFSDIR/$LOG 2>&1
|
svn co $SVN/LFS/trunk/BOOK lfs-$LFSVRS >>$JHALFSDIR/$LOG 2>&1
|
||||||
else
|
else
|
||||||
svn co $SVN/LFS/branches/$LFSVRS/BOOK lfs-$LFSVRS >>$JHALFSDIR/$LOG 2>&1
|
svn co $SVN/LFS/branches/$LFSVRS/BOOK lfs-$LFSVRS >>$JHALFSDIR/$LOG 2>&1
|
||||||
|
@ -151,7 +151,7 @@ extract_commands() {
|
||||||
if [ -d commands ] ; then rm -rf commands ; fi && mkdir commands
|
if [ -d commands ] ; then rm -rf commands ; fi && mkdir commands
|
||||||
echo -n "Extracting commands... "
|
echo -n "Extracting commands... "
|
||||||
|
|
||||||
# Use Maneul's stylesheet to dump the commands in text form from the LFS book.
|
# Use Manuel's stylesheet to dump the commands in text form from the LFS book.
|
||||||
xsltproc -v --nonet --xinclude -o ./commands/ \
|
xsltproc -v --nonet --xinclude -o ./commands/ \
|
||||||
lfs-$LFSVRS/stylesheets/dump-commands.xsl lfs-$LFSVRS/index.xml \
|
lfs-$LFSVRS/stylesheets/dump-commands.xsl lfs-$LFSVRS/index.xml \
|
||||||
>>$JHALFSDIR/$LOG 2>&1
|
>>$JHALFSDIR/$LOG 2>&1
|
||||||
|
@ -236,7 +236,7 @@ get_sources() {
|
||||||
# Iterate through each package and grab it, along with any patches it needs.
|
# Iterate through each package and grab it, along with any patches it needs.
|
||||||
for i in `cat $JHALFSDIR/packages` ; do
|
for i in `cat $JHALFSDIR/packages` ; do
|
||||||
PKG=`echo $i | sed 's/-version.*//'`
|
PKG=`echo $i | sed 's/-version.*//'`
|
||||||
|
|
||||||
# Someone used some silly entities right next to the valid package entities.
|
# Someone used some silly entities right next to the valid package entities.
|
||||||
if [ "$PKG" = "expect-lib" -o "$PKG" = "linux-dl" ] ; then continue ; fi
|
if [ "$PKG" = "expect-lib" -o "$PKG" = "linux-dl" ] ; then continue ; fi
|
||||||
|
|
||||||
|
@ -250,14 +250,14 @@ get_sources() {
|
||||||
for patch in `grep "$PKG-&$PKG" $JHALFSDIR/patches` ; do
|
for patch in `grep "$PKG-&$PKG" $JHALFSDIR/patches` ; do
|
||||||
PATCH=`echo $patch | sed 's@&'$PKG'-version;@'$VRS'@'`
|
PATCH=`echo $patch | sed 's@&'$PKG'-version;@'$VRS'@'`
|
||||||
download $PKG $PATCH
|
download $PKG $PATCH
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
build_Makefile() {
|
build_Makefile() {
|
||||||
echo -n "Creating Makefile... "
|
echo -n "Creating Makefile... "
|
||||||
cd $JHALFSDIR/commands
|
cd $JHALFSDIR/commands
|
||||||
|
|
||||||
# Start with a clean Makefile.tmp file
|
# Start with a clean Makefile.tmp file
|
||||||
>$MKFILE.tmp
|
>$MKFILE.tmp
|
||||||
|
|
||||||
|
@ -265,7 +265,7 @@ build_Makefile() {
|
||||||
# First append each name of the command files to a list (this will become the names
|
# First append each name of the command files to a list (this will become the names
|
||||||
# of the targets in the Makefile
|
# of the targets in the Makefile
|
||||||
list="$list $i"
|
list="$list $i"
|
||||||
|
|
||||||
# Grab the name of the target (minus the -pass1 or -pass2 in the case of gcc
|
# Grab the name of the target (minus the -pass1 or -pass2 in the case of gcc
|
||||||
# and binutils in chapter 5)
|
# and binutils in chapter 5)
|
||||||
name=`echo $i | sed -e 's@[0-9]\{3\}-@@' -e 's@-pass[0-9]\{1\}@@'`
|
name=`echo $i | sed -e 's@[0-9]\{3\}-@@' -e 's@-pass[0-9]\{1\}@@'`
|
||||||
|
@ -306,7 +306,7 @@ build_Makefile() {
|
||||||
# and remove the ' && \'s from the end of each line of a cat command.
|
# and remove the ' && \'s from the end of each line of a cat command.
|
||||||
sed -i -e 's|\$\$LFS|\$(LFS)|' -e '/^\tcat/,/^\tEOF/s/ \&\& \\//' $MKFILE.tmp
|
sed -i -e 's|\$\$LFS|\$(LFS)|' -e '/^\tcat/,/^\tEOF/s/ \&\& \\//' $MKFILE.tmp
|
||||||
|
|
||||||
# Stick a variable and some defines at the top of the real makefile
|
# Stick a variable and some defines at the top of the real makefile
|
||||||
echo "export SRC := /sources" > $MKFILE
|
echo "export SRC := /sources" > $MKFILE
|
||||||
echo "export LFS := $BUILDDIR" >> $MKFILE
|
echo "export LFS := $BUILDDIR" >> $MKFILE
|
||||||
echo "define unpack" >> $MKFILE
|
echo "define unpack" >> $MKFILE
|
||||||
|
|
Reference in a new issue