Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JObjectReader.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3
4
5#
6# \author mdejong
7#
8# ------------------------------------------------------------------------------------------
9#
10# Utility script to test JObjectWriter and JObjectReader.
11#
12# ------------------------------------------------------------------------------------------
13
14
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
17 exit
18fi
19
20
21source $JPP_DIR/setenv.sh $JPP_DIR
22
23
24set_variable DEBUG 2
25set_variable WORKDIR ${TMPDIR:-/tmp}/
26
27if do_usage $*; then
28 usage "$script [working directory]"
29fi
30
31case $# in
32 1) set_variable WORKDIR $1;;
33esac
34
35
36set_variable OUTPUT_FILE $WORKDIR/object.txt
37set_variable INPUT_FILE $OUTPUT_FILE
38
39JObjectWriter -o $OUTPUT_FILE
40
41JObjectReader -f $INPUT_FILE
42
43
44
45