Skip to content
Snippets Groups Projects
Commit a5cfe7c6 authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

Added new features (expr-only-file, quiet options)

* Added -q (quiet) option to mkexp to suppress info messages
* Fixed diffpath to also compare two files (used to expect directories)
* Incremented version info in setup, changes and documentation
parent 9472e451
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,15 @@ Make Experiments!
Release Changes
---------------
Release 0.3.5
=============
Global
------
* Added -q (quiet) option to mkexp to suppress info messages
* Fixed diffpath to also compare two files (used to expect directories)
Release 0.3.4
=============
......
......@@ -49,10 +49,27 @@ PATH_B=${4:-`echo "$PATH_A" | sed "s,$EXP_A,$EXP_B,g"`}
trap 'rm -r $DIFF_FILE' 0
DIFF_FILE=`mktemp`
if [ -d "$PATH_A" ]
then :
else
FIND_A="-name $(basename $PATH_A)"
PATH_A=$(dirname $PATH_A)
fi
if [ -d "$PATH_B" ]
then :
else
FIND_B="-name $(basename $PATH_B)"
PATH_B=$(dirname $PATH_B)
fi
for FILE_A in $(
{
(cd "$PATH_A" && find . ! -type d ! -name '*.log' ! -path '*/backup/*' )
(cd "$PATH_B" && find . ! -type d ! -name '*.log' ! -path '*/backup/*' | sed "s,$EXP_B,$EXP_A,g")
{
( cd "$PATH_A" &&
find . ! -type d ! -name '*.log' ! -path '*/backup/*' $FIND_A )
( cd "$PATH_B" &&
find . ! -type d ! -name '*.log' ! -path '*/backup/*' $FIND_B |
sed "s,$EXP_B,$EXP_A,g" )
} | sed 's,^\./,,' | sort -u
)
do
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
No preview for this file type
......@@ -259,9 +259,15 @@ command_line.add_argument('--path', '-p',
command_line.add_argument('--no-make-dirs', '-m',
action='store_false', dest='make_dirs',
help='do not create work and data directories')
command_line.add_argument('--quiet', '-q',
action='store_true', dest='quiet',
help='suppress informative messages')
args = command_line.parse_args()
if args.quiet:
feedback.setLevel(feedback.WARNING)
# Experiment configuration
if args.path:
config_roots = args.path.split(':')
......
from distutils.core import setup
name = 'mkexp'
version = '0.3.4'
version = '0.3.5dev'
setup(
name = name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment