Had to move all wrapper scripts for the analysis programs to the scripts
[gromacs.git] / scripts / g_nmens
blob97bf2c4bcf745a0c83f42c0fa731a6d9f4663c99
1 #!/bin/sh
2 # Select which mode of gmx-ana to use in this script
3 type=nmens
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 $*