Skip to content
Snippets Groups Projects
Commit 61e8df1a authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Added a simple to use wrapper script for "run.pl".

parent ca62e7ed
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/ksh
scriptname=$0
function usage {
cat >&2 <<EOT
Usage:
${scriptname} -c conf_file [ -m mode ]
... where 'conf_file' is the absolute path to the configuration file
to use for this stable ID mapping run, and 'mode' is either left out
(which is normally the case), or one of
- check_only
- normal (default)
- mapping
- upload
EOT
}
if [[ ! -e ./run.pl ]]; then
print -u2 "Expected to find the following executable file here:"
print -u2 "\trun.pl"
exit
fi
mode="normal"
while getopts 'c:m:' opt; do
case ${opt} in
c) conf=${OPTARG} ;;
m) mode=${OPTARG} ;;
*) usage; exit ;;
esac
done
if [[ -z ${conf} || -z ${mode} ]]; then
usage
exit
fi
if [[ ! -f ${conf} ]]; then
print -u2 "The file '${conf}' does not exist."
exit
fi
if [[ ${conf#/} == ${conf} ]]; then
print -u2 "The path '${conf}' is not absolute."
exit
fi
./run.pl --lsf --conf=${conf} --logauto --mode=${mode}
# $Id$
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment