File: find-major-version

package info (click to toggle)
xemacs21 21.4.24-9
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 33,952 kB
  • sloc: ansic: 243,821; lisp: 94,071; cpp: 5,726; sh: 4,406; perl: 1,096; cs: 775; makefile: 761; python: 279; asm: 248; lex: 119; yacc: 95; sed: 22; csh: 9
file content (28 lines) | stat: -rw-r--r-- 681 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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