r2720 - jhalfs/branches/experimental/BLFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat May 27 03:08:22 PDT 2006


Author: manuel
Date: 2006-05-27 04:08:22 -0600 (Sat, 27 May 2006)
New Revision: 2720

Modified:
   jhalfs/branches/experimental/BLFS/func_packages
   jhalfs/branches/experimental/BLFS/packages.sh
Log:
Completed generation of pre-made dependencies list for GNOME and KDE meta-packages.

Modified: jhalfs/branches/experimental/BLFS/func_packages
===================================================================
--- jhalfs/branches/experimental/BLFS/func_packages	2006-05-27 08:33:24 UTC (rev 2719)
+++ jhalfs/branches/experimental/BLFS/func_packages	2006-05-27 10:08:22 UTC (rev 2720)
@@ -36,9 +36,9 @@
 # KDE base packages
 kde-core	$BLFS_XML
 # All KDE packages
-kde	$BLFS_XML
+kde-full	$BLFS_XML
 # All KDE packages plus Koffice
-kde-full	$BLFS_XML
+kde-koffice	$BLFS_XML
 
 === INDIVIDUAL PACKAGES ===
 
@@ -71,3 +71,59 @@
   rm gnome-core.dep.tmp
 }
 
+#--------------------------#
+generate_gnome_full()  {   # GNOME full
+#--------------------------#
+  local line base_xml package
+
+  echo "gnome-core" > gnome-full.dep.tmp
+
+  for line in `grep "xi:include" $BLFS_XML/gnome/add/add.xml` ; do
+    base_xml=`echo $line | sed 's/^.*href="//;s/".*//'`
+    package=`grep "gnome/add/$base_xml" packages | cut -f1`
+    [[ -n "$package" ]] && echo $package >> gnome-full.dep.tmp
+  done
+
+  tac gnome-full.dep.tmp > gnome-full.dep
+  rm gnome-full.dep.tmp
+}
+
+#--------------------------#
+generate_kde_core()  {     # KDE core
+#--------------------------#
+  local line base_xml package
+
+  > kde-core.dep.tmp
+
+  for line in `grep "xi:include" $BLFS_XML/kde/core/core.xml` ; do
+    base_xml=`echo $line | sed 's/^.*href="//;s/".*//'`
+    package=`grep "kde/core/$base_xml" packages | cut -f1`
+    [[ -n "$package" ]] && echo $package >> kde-core.dep.tmp
+  done
+
+  tac kde-core.dep.tmp > kde-core.dep
+  rm kde-core.dep.tmp
+}
+
+#--------------------------#
+generate_kde_full()  {     # KDE full
+#--------------------------#
+  local line base_xml package
+
+  echo "kde-core" > kde-full.dep.tmp
+
+  for line in `grep "xi:include" $BLFS_XML/kde/add/add.xml` ; do
+    base_xml=`echo $line | sed 's/^.*href="//;s/".*//'`
+    package=`grep "kde/add/$base_xml" packages | cut -f1`
+    [[ -n "$package" ]] && echo $package >> kde-full.dep.tmp
+  done
+
+  for line in `grep "xi:include" $BLFS_XML/kde/devel/devel.xml` ; do
+    base_xml=`echo $line | sed 's/^.*href="//;s/".*//'`
+    package=`grep "kde/devel/$base_xml" packages | cut -f1`
+    [[ -n "$package" ]] && echo $package >> kde-full.dep.tmp
+  done
+
+  tac kde-full.dep.tmp > kde-full.dep
+  rm kde-full.dep.tmp
+}

Modified: jhalfs/branches/experimental/BLFS/packages.sh
===================================================================
--- jhalfs/branches/experimental/BLFS/packages.sh	2006-05-27 08:33:24 UTC (rev 2719)
+++ jhalfs/branches/experimental/BLFS/packages.sh	2006-05-27 10:08:22 UTC (rev 2720)
@@ -54,3 +54,16 @@
 echo -en "\tGenerating gnome-core dependencies list ..."
 generate_gnome_core
 echo "done."
+
+echo -en "\tGenerating gnome-full dependencies list ..."
+generate_gnome_full
+echo "done."
+
+echo -en "\tGenerating kde-core dependencies list ..."
+generate_kde_core
+echo "done."
+
+echo -en "\tGenerating kde-full dependencies list ..."
+generate_kde_full
+echo -e "done.\n"
+




More information about the alfs-log mailing list