Better selection stdin handling.
[gromacs/qmmm-gamess-us.git] / src / gmxlib / selection / regenerate_parser.sh
blob68154b7909debbaa8311486ac7bb6cc4b6cd44a6
1 #!/bin/bash
3 # This script runs Bison and/or Flex to regenerate the files
4 # parser.c and parser.h from parser.y and scanner.c from scanner.l.
5 # The commands are run only if the generated files are older than the
6 # Bison/Flex input files.
8 [[ parser.y -nt parser.c ]] && bison -d -t -o parser.c parser.y
9 [[ scanner.l -nt scanner.c ]] && flex -o scanner.c scanner.l