Add --test flag
svn path=/trunk/; revision=622
This commit is contained in:
parent
7714694a59
commit
cccf5459c3
|
@ -2,6 +2,9 @@
|
||||||
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
|
13 Mar 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
|
||||||
|
Add --test flag
|
||||||
|
|
||||||
02 Mar 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
|
02 Mar 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
|
||||||
Process kconfig lines in a loop to handle specs with multiple kernels
|
Process kconfig lines in a loop to handle specs with multiple kernels
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ PID=$$
|
||||||
config_file=
|
config_file=
|
||||||
verbose=0
|
verbose=0
|
||||||
keep_tmpdir=0
|
keep_tmpdir=0
|
||||||
|
testing=0
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
msg=$1
|
msg=$1
|
||||||
|
@ -21,6 +22,7 @@ Options:
|
||||||
-c|--config Specifies the config file to use (required)
|
-c|--config Specifies the config file to use (required)
|
||||||
--verbose Send output of commands to console as well as log
|
--verbose Send output of commands to console as well as log
|
||||||
-k|--keep-tmpdir Don't remove temp dir when build finishes
|
-k|--keep-tmpdir Don't remove temp dir when build finishes
|
||||||
|
-t|--test Stop after mangling specs and copying files
|
||||||
-h|--help Show this message and quit
|
-h|--help Show this message and quit
|
||||||
|
|
||||||
EOH
|
EOH
|
||||||
|
@ -87,6 +89,9 @@ do
|
||||||
-k|--keep-tmpdir)
|
-k|--keep-tmpdir)
|
||||||
keep_tmpdir=1
|
keep_tmpdir=1
|
||||||
;;
|
;;
|
||||||
|
-t|--test)
|
||||||
|
testing=1
|
||||||
|
;;
|
||||||
-*)
|
-*)
|
||||||
echo "You have specified an invalid option: ${a}"
|
echo "You have specified an invalid option: ${a}"
|
||||||
usage
|
usage
|
||||||
|
@ -171,6 +176,11 @@ for i in $(find -name '*.spec'); do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "${testing}" -eq 1 ]; then
|
||||||
|
echo "Exiting due to --test"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
# Create snapshot
|
# Create snapshot
|
||||||
if ! run_cmd "catalyst -c ${CATALYST_CONFIG} -s ${DATESTAMP}" "${TMPDIR}/log/snapshot.log"; then
|
if ! run_cmd "catalyst -c ${CATALYST_CONFIG} -s ${DATESTAMP}" "${TMPDIR}/log/snapshot.log"; then
|
||||||
send_email "Catalyst build error - snapshot" "" "${TMPDIR}/log/snapshot.log"
|
send_email "Catalyst build error - snapshot" "" "${TMPDIR}/log/snapshot.log"
|
||||||
|
|
Loading…
Reference in a new issue