r2694 - jhalfs/trunk/common

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Mon May 15 11:03:09 PDT 2006


Author: manuel
Date: 2006-05-15 12:03:09 -0600 (Mon, 15 May 2006)
New Revision: 2694

Modified:
   jhalfs/trunk/common/common-functions
Log:
Now LFS, CLFS, and HLFS have a packages.ent file.

Modified: jhalfs/trunk/common/common-functions
===================================================================
--- jhalfs/trunk/common/common-functions	2006-05-14 23:35:23 UTC (rev 2693)
+++ jhalfs/trunk/common/common-functions	2006-05-15 18:03:09 UTC (rev 2694)
@@ -612,32 +612,13 @@
 
   # Create the packages file. We need it for proper Makefile creation
   rm -f packages
-  case "${PROGNAME}" in
-    clfs)
-      echo -n "Creating <${PROGNAME}> specific packages file"
-      grep "\-version " $BOOK/packages.ent | sed -e 's@<!ENTITY @@' \
-                                                 -e 's@">@"@' \
-                                                 -e '/generic/d' > packages
-     echo " ...OK"
-     ;;
+  if [[ "${PROGNAME}" != "blfs" ]] ; then
+    echo -n "Creating <${PROGNAME}> specific packages file"
+    grep "\-version " $BOOK/packages.ent | sed -e 's@<!ENTITY @@' \
+                                                -e 's@">@"@' > packages
+    echo " ...OK"
+  fi
 
-    hlfs)
-      echo -n "Creating <${PROGNAME}> specific packages file"
-      grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' \
-                                               -e 's@">@"@' \
-                                               -e '/generic/d' >> packages
-      echo " ...OK"
-      ;;
-
-    lfs)
-      echo -n "Creating <${PROGNAME}> specific packages file"
-      grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' \
-                                               -e 's@">@"@' \
-                                               -e '/generic/d' >> packages
-      echo " ...OK"
-      ;;
-  esac
-
   # Done. Moving on...
   get_sources
 }




More information about the alfs-log mailing list