experimental
Last change
on this file since 6977354 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
|
Rev | Line | |
---|
[1d2f9d4] | 1 | #!/bin/bash
|
---|
| 2 | #
|
---|
| 3 | # $Id$
|
---|
| 4 | #
|
---|
| 5 | set -e
|
---|
| 6 |
|
---|
[6977354] | 7 | BLFS_XML=$1 # Book directory
|
---|
| 8 | DOC_MODE=$2 # Action to take, only update at the moment
|
---|
| 9 |
|
---|
[5769ccd] | 10 | #---------------------
|
---|
| 11 | # packages module
|
---|
[2ca2992] | 12 | source libs/func_packages
|
---|
[5769ccd] | 13 | [[ $? > 0 ]] && echo -e "\n\tERROR: func_packages did not load..\n" && exit
|
---|
| 14 |
|
---|
| 15 |
|
---|
| 16 | if [[ -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
|
---|
| 19 | fi
|
---|
| 20 |
|
---|
| 21 | if [[ ! -d $BLFS_XML ]] ; then
|
---|
| 22 | echo -e "\n\t$BLFS_XML is not a directory\n"
|
---|
| 23 | exit 1
|
---|
| 24 | fi
|
---|
| 25 |
|
---|
| 26 | if [[ ! -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
|
---|
| 29 | fi
|
---|
| 30 |
|
---|
[6977354] | 31 | if [[ -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
|
---|
| 49 | fi
|
---|
[1d2f9d4] | 50 |
|
---|
[5769ccd] | 51 | echo -en "\n\tGenerating packages file ..."
|
---|
| 52 | generate_packages
|
---|
| 53 | echo "done."
|
---|
[1d2f9d4] | 54 |
|
---|
[5769ccd] | 55 | echo -en "\tGenerating gnome-core dependencies list ..."
|
---|
| 56 | generate_gnome_core
|
---|
| 57 | echo "done."
|
---|
[ea72d77] | 58 |
|
---|
| 59 | echo -en "\tGenerating gnome-full dependencies list ..."
|
---|
| 60 | generate_gnome_full
|
---|
| 61 | echo "done."
|
---|
| 62 |
|
---|
| 63 | echo -en "\tGenerating kde-core dependencies list ..."
|
---|
| 64 | generate_kde_core
|
---|
| 65 | echo "done."
|
---|
| 66 |
|
---|
| 67 | echo -en "\tGenerating kde-full dependencies list ..."
|
---|
| 68 | generate_kde_full
|
---|
| 69 | echo -e "done.\n"
|
---|
| 70 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.