summaryrefslogtreecommitdiff
path: root/support/intex/bin/get_release
blob: 1e8953f99ecc78b64c6613d3f5696738ccd05fd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/bash
#
# $Id$
#
# Copyright (C) 2007 by Martin Thorsen Ranang
#

if [ -z "$RELEASE_FILE" ]; then
    RELEASE_FILE=RELEASE
fi

if [ ! -f $RELEASE_FILE ]; then
    PATH=$PATH:$(dirname $0)
    increase_release
fi

release=$(cat $RELEASE_FILE)
echo -n $release