undoReplacements.sh 541 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/bash
# Removes all replacements to recover the old state
# call from this directory

reverse="--reverse"
#reverse=
if [ -e /labEnv3/bin/activate ]; then
    source /labEnv3/bin/activate
fi

cd ../meta_info_exploded/
echo -n "rename exploded... "
python ../renames/renamer.py $reverse */*.json
cd ../meta_info/meta_dictionary/
echo -n "rename compact ... "
python ../../renames/renamer.py $reverse *.meta_dictionary.json
cd ../nomad_meta_info
echo -n "rename v1      ... "
python ../../renames/renamer.py $reverse *.nomadmetainfo.json