source: BLFS/packages.sh@ 6e4e0dd

experimental
Last change on this file since 6e4e0dd was 6977354, checked in by George Boudreau <georgeb@…>, 19 years ago

again, a little housekeeping

  • Property mode set to 100755
File size: 1.5 KB
Line 
1#!/bin/bash
2#
3# $Id$
4#
5set -e
6
7BLFS_XML=$1 # Book directory
8DOC_MODE=$2 # Action to take, only update at the moment
9
10#---------------------
11# packages module
12source libs/func_packages
13[[ $? > 0 ]] && echo -e "\n\tERROR: func_packages did not load..\n" && exit
14
15
16if [[ -z "$1" ]] ; then
17 echo -e "\n\tYou must to provide the name of the BLFS book sources directory.\n"
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
31if [[ -n "$DOC_MODE" ]] ; then
32 case $DOC_MODE in
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 * )
46 echo -e "\n\tUnknown option ${DOC_MODE} ignored.\n"
47 ;;
48 esac
49fi
50
51echo -en "\n\tGenerating packages file ..."
52generate_packages
53echo "done."
54
55echo -en "\tGenerating gnome-core dependencies list ..."
56generate_gnome_core
57echo "done."
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.