Merged r2184 from trunk.
This commit is contained in:
parent
7178cdc1b7
commit
4b7dde9ba4
1 changed files with 16 additions and 3 deletions
19
jhalfs
19
jhalfs
|
@ -118,9 +118,15 @@ get_book() {
|
||||||
if svn up | grep -q At && test -d $JHALFSDIR/commands && \
|
if svn up | grep -q At && test -d $JHALFSDIR/commands && \
|
||||||
test -f $JHALFSDIR/packages && test -f $JHALFSDIR/patches ; then
|
test -f $JHALFSDIR/packages && test -f $JHALFSDIR/patches ; then
|
||||||
echo -ne "done\n"
|
echo -ne "done\n"
|
||||||
|
# Set the canonical book version
|
||||||
|
cd $JHALFSDIR
|
||||||
|
VERSION=`grep "ENTITY version " $BOOK/general.ent | sed 's@<!ENTITY version "@@;s@">@@'`
|
||||||
get_sources
|
get_sources
|
||||||
else
|
else
|
||||||
echo -ne "done\n"
|
echo -ne "done\n"
|
||||||
|
# Set the canonical book version
|
||||||
|
cd $JHALFSDIR
|
||||||
|
VERSION=`grep "ENTITY version " $BOOK/general.ent | sed 's@<!ENTITY version "@@;s@">@@'`
|
||||||
extract_commands
|
extract_commands
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -130,15 +136,18 @@ get_book() {
|
||||||
svn co $SVN/LFS/branches/$LFSVRS/BOOK lfs-$LFSVRS >>$LOGDIR/$LOG 2>&1
|
svn co $SVN/LFS/branches/$LFSVRS/BOOK lfs-$LFSVRS >>$LOGDIR/$LOG 2>&1
|
||||||
fi
|
fi
|
||||||
echo -ne "done\n"
|
echo -ne "done\n"
|
||||||
|
# Set the canonical book version
|
||||||
|
cd $JHALFSDIR
|
||||||
|
VERSION=`grep "ENTITY version " $BOOK/general.ent | sed 's@<!ENTITY version "@@;s@">@@'`
|
||||||
extract_commands
|
extract_commands
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -ne "Using $BOOK as book's sources ...\n"
|
echo -ne "Using $BOOK as book's sources ...\n"
|
||||||
|
# Set the canonical book version
|
||||||
|
cd $JHALFSDIR
|
||||||
|
VERSION=`grep "ENTITY version " $BOOK/general.ent | sed 's@<!ENTITY version "@@;s@">@@'`
|
||||||
extract_commands
|
extract_commands
|
||||||
fi
|
fi
|
||||||
# Set the canonical book version
|
|
||||||
cd $JHALFSDIR
|
|
||||||
VERSION=`grep "ENTITY version " $BOOK/general.ent | sed -e 's@<!ENTITY version "@@' -e 's@">@@'`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#----------------------------#
|
#----------------------------#
|
||||||
|
@ -229,6 +238,9 @@ download() {
|
||||||
if [ $2 != MD5SUMS ] && ! echo "$MD5" | md5sum -c - ; then
|
if [ $2 != MD5SUMS ] && ! echo "$MD5" | md5sum -c - ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if [ $2 != MD5SUMS ] ; then
|
||||||
|
echo `grep "$MD5" MD5SUMS` >> MD5SUMS-$VERSION
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#----------------------------#
|
#----------------------------#
|
||||||
|
@ -247,6 +259,7 @@ get_sources() {
|
||||||
if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi
|
if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi
|
||||||
cd $BUILDDIR/sources
|
cd $BUILDDIR/sources
|
||||||
if [ -f MD5SUMS ] ; then rm MD5SUMS ; fi
|
if [ -f MD5SUMS ] ; then rm MD5SUMS ; fi
|
||||||
|
if [ -f MD5SUMS-$VERSION ] ; then rm MD5SUMS-$VERSION ; fi
|
||||||
|
|
||||||
download "" MD5SUMS
|
download "" MD5SUMS
|
||||||
|
|
||||||
|
|
Reference in a new issue