summaryrefslogtreecommitdiff
path: root/etc/bigloo/autoconf/getbversion
blob: ff83b1cc9fc6413b284ffd31b52dfb83f1da082d (plain)
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
29
30
31
32
33
34
35
36
#!/bin/sh
#*=====================================================================*/
#*    serrano/prgm/project/bglk/autoconf/getbversion                   */
#*    -------------------------------------------------------------    */
#*    Author      :  Manuel Serrano                                    */
#*    Creation    :  Tue Jan 12 14:33:21 1999                          */
#*    Last change :  Mon May 22 10:47:46 2000 (serrano)                */
#*    -------------------------------------------------------------    */
#*    Get the current bigloo version (with the level)                  */
#*=====================================================================*/

bigloo=bigloo
 
#*---------------------------------------------------------------------*/
#*    We parse the arguments                                           */
#*---------------------------------------------------------------------*/
while : ; do
  case $1 in
    "")
      break;;
    --bigloo=*|-bigloo=*)
      bigloo="`echo $1 | sed 's/^[-a-z]*=//'`";;

    --version=*|-version=*)
      version="`echo $1 | sed 's/^[-a-z]*=//'`";;

    -*)
      echo "Unknown option \"$1\", ignored" >&2;;
  esac
  shift
done

#*---------------------------------------------------------------------*/
#*    We spawn a bigloo process to check its version number            */
#*---------------------------------------------------------------------*/
$bigloo -q -eval "(begin (print *bigloo-version*) (exit 0))"