#!/bin/sh -e

# echo out the version of xemacs currently being dealt with

# export srcdir=`pwd`
# export version=`grep 'defconst[         ]*emacs-version'\
#  ${srcdir}/lisp/version.el \
#  | sed -ne 's/^(defconst emacs-version "\([0-9][0-9]\)\.[0-9]*.*/\1/p'`

# echo $srcdir
# echo $version

#echo ${version}

# OK 19.16 moved the version thingy into configure.  How annoying.  So
# we will hard code it here until we have a better plan

#echo "19"

#DIR=`pwd`

#echo `echo $DIR | perl -pe 's/.*xemacs([0-9]*)-.*/$1/;'`

#echo `dpkg-parsechangelog | egrep "^Version:" | perl -pe 's/Version:\s*([0-9]+)(\.[0-9]+)?(-.*)?-([0-9]+)/$1/;'`

. ./version.sh

echo $emacs_major_version
