Removing scripts and introducing wrapper binaries instead.
[gromacs.git] / scripts / g_analyze
blob6b21c5499288e005c45dde97b1c1df8d20acf17f
1 #!/bin/sh
2 # Select which mode of gmx-ana to use in this script
3 type=analyze
4 # Create gmx-ana path from our name. Two cases:
5 # 1. $0 contains slash = a full or relative path
6 # 2. $0 without slash = gmx-ana must be in our path
7 case $0 in
8 */*) gmxana=${0%/*}/gmx-ana ;;
9 *) gmxana=gmx-ana ;;
10 esac
11 # Check that the file is there
12 if [ ! -x $gmxana ]; then
13 echo Cannot find executable $gmxana
14 exit
16 $gmxana -type $type $*