experimental
Last change
on this file since f1fadeb was 2ca2992, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago |
Moved function, XSL, and pre-made dependencies files to libs directory.
|
-
Property mode
set to
100755
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | #
|
---|
3 | # $Id$
|
---|
4 | #
|
---|
5 | set -e
|
---|
6 |
|
---|
7 | #---------------------
|
---|
8 | # packages module
|
---|
9 | source libs/func_packages
|
---|
10 | [[ $? > 0 ]] && echo -e "\n\tERROR: func_packages did not load..\n" && exit
|
---|
11 |
|
---|
12 |
|
---|
13 | if [[ -z "$1" ]] ; then
|
---|
14 | echo -e "n\tYou must to provide the name of the BLFS book sources directory.\n"
|
---|
15 | exit 1
|
---|
16 | fi
|
---|
17 |
|
---|
18 | BLFS_XML=$1
|
---|
19 |
|
---|
20 | if [[ ! -d $BLFS_XML ]] ; then
|
---|
21 | echo -e "\n\t$BLFS_XML is not a directory\n"
|
---|
22 | exit 1
|
---|
23 | fi
|
---|
24 |
|
---|
25 | if [[ ! -f $BLFS_XML/use-unzip.xml ]] ; then
|
---|
26 | echo -e "\n\tLooks like $BLFS_XML is not a BLFS book sources directory\n"
|
---|
27 | exit 1
|
---|
28 | fi
|
---|
29 |
|
---|
30 | if [[ -n "$2" ]] ; then
|
---|
31 | case $2 in
|
---|
32 | update )
|
---|
33 | if [[ -d $BLFS_XML/.svn ]] ; then
|
---|
34 | echo -e "\n\tUpdating the $BLFS_XML book sources ...\n"
|
---|
35 | pushd $BLFS_XML 1> /dev/null
|
---|
36 | svn up
|
---|
37 | popd 1> /dev/null
|
---|
38 | echo -e "\n\tBook sources updated."
|
---|
39 | else
|
---|
40 | echo -e "\n\tLooks like $BLFS_XML is not a svn working copy."
|
---|
41 | echo -e "\tSkipping BLFS sources update.\n"
|
---|
42 | fi
|
---|
43 | ;;
|
---|
44 | * )
|
---|
45 | echo -e "\n\tUnknown option $2 ignored.\n"
|
---|
46 | ;;
|
---|
47 | esac
|
---|
48 | fi
|
---|
49 |
|
---|
50 | echo -en "\n\tGenerating packages file ..."
|
---|
51 | generate_packages
|
---|
52 | echo "done."
|
---|
53 |
|
---|
54 | echo -en "\tGenerating gnome-core dependencies list ..."
|
---|
55 | generate_gnome_core
|
---|
56 | echo "done."
|
---|
57 |
|
---|
58 | echo -en "\tGenerating gnome-full dependencies list ..."
|
---|
59 | generate_gnome_full
|
---|
60 | echo "done."
|
---|
61 |
|
---|
62 | echo -en "\tGenerating kde-core dependencies list ..."
|
---|
63 | generate_kde_core
|
---|
64 | echo "done."
|
---|
65 |
|
---|
66 | echo -en "\tGenerating kde-full dependencies list ..."
|
---|
67 | generate_kde_full
|
---|
68 | echo -e "done.\n"
|
---|
69 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.