r2137 - jhalfs/trunk

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Mon Oct 31 13:13:33 PST 2005


Author: manuel
Date: 2005-10-31 14:13:32 -0700 (Mon, 31 Oct 2005)
New Revision: 2137

Modified:
   jhalfs/trunk/jhalfs
Log:
Automatized the download of Udev config file.

Modified: jhalfs/trunk/jhalfs
===================================================================
--- jhalfs/trunk/jhalfs	2005-10-29 16:48:54 UTC (rev 2136)
+++ jhalfs/trunk/jhalfs	2005-10-31 21:13:32 UTC (rev 2137)
@@ -171,6 +171,7 @@
   grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' -e 's@">@"@' \
   -e '/generic/d' >> packages
   echo `grep "glibc" packages | sed 's at glibc@glibc-linuxthreads@'` >> packages
+  echo `grep "udev-config-file" $BOOK/general.ent | sed -e 's@<!ENTITY @@' -e 's@">@"@'` >> packages
   # If we are buildind the UTF-8 branch, the glibc-libidn package is required
   if grep -q "man-db-version" $BOOK/general.ent ; then
     echo `grep "glibc" packages | sed 's at glibc@glibc-libidn@'` >> packages
@@ -245,7 +246,7 @@
 
     # Iterate through each package and grab it, along with any patches it needs.
     for i in `cat $JHALFSDIR/packages` ; do
-      PKG=`echo $i | sed 's/-version.*//'`
+      PKG=`echo $i | sed -e 's/-version.*//' -e 's/-file.*//'`
       # Needed for Groff patchlevel patch on UTF-8 branch
       GROFFLEVEL=`grep "groff-patchlevel" $JHALFSDIR/packages | sed -e 's/groff-patchlevel //' -e 's/"//g'`
 
@@ -255,6 +256,9 @@
       VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'`
       if [ "$PKG" = "tcl" ] ; then
         FILE="$PKG$VRS-src.tar.bz2"
+      elif [ "$PKG" = "udev-config" ] ; then
+        PKG="udev"
+        FILE="$VRS"
       else
         FILE="$PKG-$VRS.tar.bz2"
       fi
@@ -269,8 +273,6 @@
         download $PKG $PATCH
       done
     done
-    # Hardcoded Udev configuration file until find a better way
-    download udev udev-config-4.rules
   fi
 }
 




More information about the alfs-log mailing list