add era dir to make_states
This commit is contained in:
parent
19451cadff
commit
8723a79225
|
@ -6,9 +6,9 @@ set -e
|
||||||
|
|
||||||
trap "exit" INT
|
trap "exit" INT
|
||||||
|
|
||||||
if [ -z "$3" ]
|
if [ -z "$4" ]
|
||||||
then
|
then
|
||||||
echo "Syntax: make_states.sh datadir era1dir statsdir [startdir]"
|
echo "Syntax: make_states.sh datadir era1dir eradir statsdir [startdir]"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -20,15 +20,16 @@ REV=$(git rev-parse --short=8 HEAD)
|
||||||
DATA_DIR="$1/${DATE}-${REV}"
|
DATA_DIR="$1/${DATE}-${REV}"
|
||||||
|
|
||||||
mkdir -p "$DATA_DIR"
|
mkdir -p "$DATA_DIR"
|
||||||
[ "$4" ] && cp -ar "$4"/* "$DATA_DIR"
|
[ "$5" ] && cp -ar "$5"/* "$DATA_DIR"
|
||||||
|
|
||||||
while true;
|
while true;
|
||||||
do
|
do
|
||||||
"$SCRIPT_DIR/../build/nimbus" import \
|
"$SCRIPT_DIR/../build/nimbus" import \
|
||||||
--data-dir:"${DATA_DIR}" \
|
--data-dir:"${DATA_DIR}" \
|
||||||
--era1-dir:"$2" \
|
--era1-dir:"$2" \
|
||||||
|
--era-dir:"$3" \
|
||||||
--debug-csv-stats:"$3/stats-${DATE}-${REV}.csv" \
|
--debug-csv-stats:"$3/stats-${DATE}-${REV}.csv" \
|
||||||
--max-blocks:100000
|
--max-blocks:1000000
|
||||||
cp -ar "$1/${DATE}-${REV}" "$1/${DATE}-${REV}"-$(printf "%04d" $counter)
|
cp -ar "$1/${DATE}-${REV}" "$1/${DATE}-${REV}"-$(printf "%04d" $counter)
|
||||||
counter=$((counter+1))
|
counter=$((counter+1))
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue