hdf2adf 324 B

12345678910111213141516
  1. #!/bin/sh
  2. if [ $# -lt 1 ]; then
  3. echo "usage: hdf2adf [-links] inputCGNSfile [outputCGNSfile]"
  4. exit 1
  5. fi
  6. dir=`dirname $0`
  7. if ! [ -x $dir/cgnsconvert ]; then
  8. echo "cgnsconvert does not exist in $dir"
  9. exit 1
  10. fi
  11. links=
  12. if test "$1" = "-l" -o "$1" = "-links" ; then
  13. links=-l
  14. shift
  15. fi
  16. $dir/cgnsconvert -a $links $1 $2