|
Matthias Brugger |
c8a553 |
#!/bin/bash
|
|
Michal Marek |
9bee79 |
|
|
Michal Marek |
0a417c |
#############################################################################
|
|
Michal Marek |
0a417c |
# Copyright (c) 2003,2004,2009 Novell, Inc.
|
|
Michal Marek |
0a417c |
# All Rights Reserved.
|
|
Michal Marek |
0a417c |
#
|
|
Michal Marek |
0a417c |
# This program is free software; you can redistribute it and/or
|
|
Michal Marek |
0a417c |
# modify it under the terms of version 2 of the GNU General Public License as
|
|
Michal Marek |
0a417c |
# published by the Free Software Foundation.
|
|
Michal Marek |
0a417c |
#
|
|
Michal Marek |
0a417c |
# This program is distributed in the hope that it will be useful,
|
|
Michal Marek |
0a417c |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Michal Marek |
0a417c |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Michal Marek |
0a417c |
# GNU General Public License for more details.
|
|
Michal Marek |
0a417c |
#
|
|
Michal Marek |
0a417c |
# You should have received a copy of the GNU General Public License
|
|
Michal Marek |
0a417c |
# along with this program; if not, contact Novell, Inc.
|
|
Michal Marek |
0a417c |
#
|
|
Michal Marek |
0a417c |
# To contact Novell about this file by physical or electronic mail,
|
|
Michal Marek |
0a417c |
# you may find current contact information at www.novell.com
|
|
Michal Marek |
0a417c |
#############################################################################
|
|
Michal Marek |
0a417c |
|
|
Michal Marek |
0a417c |
# check that series.conf and config.conf match reality
|
|
Michal Marek |
0a417c |
|
|
Michal Marek |
9bee79 |
# Check the patches
|
|
Michal Marek |
9bee79 |
scripts/guards --path "$(echo patches.* | sed -e 's/ /:/g')" \
|
|
Michal Marek |
85817d |
--check --config=series.conf
|
|
Michal Marek |
9bee79 |
|
|
Borislav Petkov |
cdbf42 |
ret=$?
|
|
Borislav Petkov |
cdbf42 |
if (( $ret != 0 )); then
|
|
Borislav Petkov |
cdbf42 |
echo "series.conf needs more work, exiting... "
|
|
Borislav Petkov |
cdbf42 |
exit $ret
|
|
Borislav Petkov |
cdbf42 |
fi
|
|
Borislav Petkov |
cdbf42 |
|
|
Michal Marek |
9bee79 |
# Check the configuration files
|
|
Michal Marek |
85817d |
scripts/guards --prefix config --check --config=config.conf
|