//set the version string

#define public

#if !Defined(VERSION)
  #error "VERSION must be defined"
#endif

#define MAJOR=Copy(VERSION,1,Pos(".",VERSION)-1)
#define MINOR=Copy(VERSION,Pos(".",VERSION)+1)
#define MICRO=Copy(MINOR,Pos(".",MINOR)+1)
#expr MINOR=Copy(MINOR,1,Pos(".",MINOR)-1)

#if Int(MINOR) % 2 == 1
 #define DEVEL="-dev"
 #define DIR_VER=MAJOR + "." + MINOR
#else
 #define DEVEL=""
 #define DIR_VER=MAJOR + ".0"
#endif
