awips2/deltaScripts/13.6.1/updateSkewtProcedures.sh
2022-05-05 12:34:50 -05:00

24 lines
523 B
Bash

#!/bin/bash
# This script will update any D2D procedures files
# which use older skewT displays to use Nsharp.
IFS=$'\n'
files=`ls /awips2/edex/data/utility/cave_static/*/*/procedures/*.xml`
if [ $? -ne 0 ]; then
echo "No procedures found"
exit 1
fi
MY_DIR=`dirname $0`
for f in $files; do
grep 'skewtDisplay\|d2DNSharpDisplay' $f > /dev/null
if [ $? -eq 0 ]; then
echo Updating $f
python $MY_DIR/updateSkewtDisplays.py $f
fi
done
echo "INFO: the update has completed successfully!"
exit 0