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

mkexp: added 'upexp' tool to run the 'update' script for a given config file

parent 366ed128
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ Global
* Added 'getconfig' tool to generate clean config files from 'update' scripts
* Added 'editexp' tool to edit the config file for a given 'update' script
* Added 'upexp' tool to run the 'update' script for a given config file
Templates
---------
......
This diff is collapsed.
No preview for this file type
......@@ -10,7 +10,7 @@ setup(
author_email = 'karl-hermann.wieners@mpimet.mpg.de',
url = 'http://code.mpimet.mpg.de/projects/esmenv',
py_modules = ['_version', 'configobj', 'validate', 'feedback', 'expargparse', 'expconfig', 'files', 'package_info', 'update'],
scripts = ['mkexp', 'getexp', 'rmexp', 'diffexp', 'diffpath', 'cpexp', 'cppath', 'duexp', 'getconfig', 'editexp'],
scripts = ['mkexp', 'getexp', 'rmexp', 'diffexp', 'diffpath', 'cpexp', 'cppath', 'duexp', 'getconfig', 'editexp', 'upexp'],
data_files = [('share/doc/'+package_info.name, ['doc/mkexp.pdf', 'mkexp.bash'])],
platforms = ['Posix'],
license = 'LICENSE.txt',
......
upexp 0 → 100755
#! /bin/sh
#
# Update experiment setups using config information.
#
# $Id$
#
PROGRAM=`basename $0`
BINDIR=`dirname $0`
PATH="$BINDIR:$PATH"
die () {
echo "$@" >&2
exit 1
}
[ "x$1" = x ] && die "Oops: invalid number of parameters
Usage: $PROGRAM config_file [key=value...]"
SCRIPT_DIR=`getexp -k SCRIPT_DIR "$@"` || exit $?
cd "$SCRIPT_DIR"
exec ./update
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