source: BLFS/packages.sh@ 4761b5a

experimental
Last change on this file since 4761b5a was 6977354, checked in by George Boudreau <georgeb@…>, 18 years ago

again, a little housekeeping

  • Property mode set to 100755
File size: 1.5 KB
RevLine 
[1d2f9d4]1#!/bin/bash
2#
3# $Id$
4#
5set -e
6
[6977354]7BLFS_XML=$1 # Book directory
8DOC_MODE=$2 # Action to take, only update at the moment
9
[5769ccd]10#---------------------
11# packages module
[2ca2992]12source libs/func_packages
[5769ccd]13[[ $? > 0 ]] && echo -e "\n\tERROR: func_packages did not load..\n" && exit
14
15
16if [[ -z "$1" ]] ; then
[6977354]17 echo -e "\n\tYou must to provide the name of the BLFS book sources directory.\n"
[5769ccd]18 exit 1
19fi
20
21if [[ ! -d $BLFS_XML ]] ; then
22 echo -e "\n\t$BLFS_XML is not a directory\n"
23 exit 1
24fi
25
26if [[ ! -f $BLFS_XML/use-unzip.xml ]] ; then
27 echo -e "\n\tLooks like $BLFS_XML is not a BLFS book sources directory\n"
28 exit 1
29fi
30
[6977354]31if [[ -n "$DOC_MODE" ]] ; then
32 case $DOC_MODE in
[5769ccd]33 update )
34 if [[ -d $BLFS_XML/.svn ]] ; then
35 echo -e "\n\tUpdating the $BLFS_XML book sources ...\n"
36 pushd $BLFS_XML 1> /dev/null
37 svn up
38 popd 1> /dev/null
39 echo -e "\n\tBook sources updated."
40 else
41 echo -e "\n\tLooks like $BLFS_XML is not a svn working copy."
42 echo -e "\tSkipping BLFS sources update.\n"
43 fi
44 ;;
45 * )
[6977354]46 echo -e "\n\tUnknown option ${DOC_MODE} ignored.\n"
[5769ccd]47 ;;
48 esac
49fi
[1d2f9d4]50
[5769ccd]51echo -en "\n\tGenerating packages file ..."
52generate_packages
53echo "done."
[1d2f9d4]54
[5769ccd]55echo -en "\tGenerating gnome-core dependencies list ..."
56generate_gnome_core
57echo "done."
[ea72d77]58
59echo -en "\tGenerating gnome-full dependencies list ..."
60generate_gnome_full
61echo "done."
62
63echo -en "\tGenerating kde-core dependencies list ..."
64generate_kde_core
65echo "done."
66
67echo -en "\tGenerating kde-full dependencies list ..."
68generate_kde_full
69echo -e "done.\n"
70
Note: See TracBrowser for help on using the repository browser.