r3077 - jhalfs/branches/experimental

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Mon Aug 28 10:17:48 PDT 2006


Author: manuel
Date: 2006-08-28 11:17:47 -0600 (Mon, 28 Aug 2006)
New Revision: 3077

Modified:
   jhalfs/branches/experimental/jhalfs
Log:
Installing blfs-tool files.

Modified: jhalfs/branches/experimental/jhalfs
===================================================================
--- jhalfs/branches/experimental/jhalfs	2006-08-28 00:20:26 UTC (rev 3076)
+++ jhalfs/branches/experimental/jhalfs	2006-08-28 17:17:47 UTC (rev 3077)
@@ -298,6 +298,23 @@
 sed 's,FAKEDIR,'$BOOK',' $PACKAGE_DIR/$XSL > $JHALFSDIR/${XSL}
 export XSL=$JHALFSDIR/${XSL}
 
+# Install blfs-tool, if requested.
+if [[ "${BLFS_TOOL}" = "y" ]] ; then
+  # Install the files
+  [[ ! -d ${BUILDDIR}${BLFS_ROOT} ]] && mkdir -p ${BUILDDIR}${BLFS_ROOT}
+  cp -r BLFS/* ${BUILDDIR}${BLFS_ROOT}
+  cp -r menu ${BUILDDIR}${BLFS_ROOT}
+  cp $COMMON_DIR/progress_bar.sh ${BUILDDIR}${BLFS_ROOT}
+  cp README.BLFS ${BUILDDIR}${BLFS_ROOT}
+  # Clean-up
+  rm -rf ${BUILDDIR}${BLFS_ROOT}/libs/.svn
+  rm -rf ${BUILDDIR}${BLFS_ROOT}/menu/.svn
+  rm -rf ${BUILDDIR}${BLFS_ROOT}/menu/lxdialog/.svn
+  # Set some harcoded envars to their proper values
+  sed -i 's,blfs-xml,'$BLFS_XML',' ${BUILDDIR}${BLFS_ROOT}/{update_book.sh,libs/book.xsl}
+  sed -i 's,tracking-dir,'$TRACKING_DIR',' ${BUILDDIR}${BLFS_ROOT}/{update_book.sh,gen-makefile.sh}
+fi
+
 get_book
 echo "${SD_BORDER}${nl_}"
 




More information about the alfs-log mailing list