awips2/deltaScripts/13.6.1/updateSkewtProcedures.sh
Ben Steffensmeier 2a47c7e4e2 Issue #2258 Convert profiler sounding to var height with hodo.
Change-Id: I7b8c704ebc847169c2d09bb0bea13d0b60a9cff6

Former-commit-id: 23bcf7cfc6 [formerly e401fe335f] [formerly b7b18e02bf] [formerly b7b18e02bf [formerly 0c2f894b82]] [formerly 23bcf7cfc6 [formerly e401fe335f] [formerly b7b18e02bf] [formerly b7b18e02bf [formerly 0c2f894b82]] [formerly 32a0b19a38 [formerly b7b18e02bf [formerly 0c2f894b82] [formerly 32a0b19a38 [formerly 2aab48d1032c0b6fd14645437836ad5ca13cb415]]]]]
Former-commit-id: 32a0b19a38
Former-commit-id: bc3a154d0d [formerly 7811f7c18b] [formerly 890eaa3751] [formerly a3760f556e605cd9f9b76ff5082106b6f3f30238 [formerly b2f2e9a8c3c371425dac6b0fe4ec8f9a52e935af] [formerly 890eaa3751 [formerly f75824d4bc]]]
Former-commit-id: 25124a960af53374fb364483c1a09639a7c593ce [formerly e86ea3e56fbb43dbcd7e769fcac07f47756890ab] [formerly 7ea9607352 [formerly 766fadfa67]]
Former-commit-id: 7ea9607352
Former-commit-id: a9abfb00e7
2013-08-15 16:15:15 -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