[Fai-commit] r3727 - trunk/bin
fai-commit at lists.alioth.debian.org
fai-commit at lists.alioth.debian.org
Wed Aug 2 10:06:43 UTC 2006
Author: lange
Date: 2006-08-02 10:06:42 +0000 (Wed, 02 Aug 2006)
New Revision: 3727
Modified:
trunk/bin/fai-class
trunk/bin/fai-do-scripts
Log:
print messages about skipping files or scripts only in debug mode
Modified: trunk/bin/fai-class
===================================================================
--- trunk/bin/fai-class 2006-08-01 20:38:50 UTC (rev 3726)
+++ trunk/bin/fai-class 2006-08-02 10:06:42 UTC (rev 3727)
@@ -6,7 +6,7 @@
# fai-class - determine all classes a host belongs to
#
# This script is part of FAI (Fully Automatic Installation)
-# (c) 2002-2005 by Thomas Lange, lange at informatik.uni-koeln.de
+# (c) 2002-2006 by Thomas Lange, lange at informatik.uni-koeln.de
# Universitaet zu Koeln
#
#*********************************************************************
@@ -27,7 +27,7 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#*********************************************************************
-version="version 1.5.1, 13-jan-2005"
+version="version 1.5.2, 2-aug-2006"
# import variables: $LOGDIR $verbose $debug
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -163,7 +163,7 @@
classes=$(cat $filename)
export classes
case $f in
- *~|*.bak) echo "Skipping backup file $f" ;;
+ *~|*.bak) debugmsg "Skipping backup file $f" ;;
*.source)
verbosemsg "Executing $classdir/$f."
# this script can define $newclasses
Modified: trunk/bin/fai-do-scripts
===================================================================
--- trunk/bin/fai-do-scripts 2006-08-01 20:38:50 UTC (rev 3726)
+++ trunk/bin/fai-do-scripts 2006-08-02 10:06:42 UTC (rev 3727)
@@ -26,7 +26,7 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#*********************************************************************
-version="version 1.5, 23-july-2006"
+version="version 1.5.1, 2-aug-2006"
# variables needed: $classes, $cfclasses, $LOGDIR
#
@@ -77,7 +77,8 @@
# may be remove some day
case $file in
- *~) echo "Skipping backup file $file" ; return ;;
+ *~) [ "$debug" ] && echo "Skipping backup file $file"
+ return ;;
esac
name=$(basename $file)
More information about the Fai-commit
mailing list