File:  [GNUtrition Sources] / gnutrition / version.sh
Revision 1.1: download - view: text, annotated - select for diffs
Fri May 8 03:23:59 2026 UTC (12 days, 11 hours ago) by asm
Branches: MAIN
CVS tags: HEAD
Migration from Git with 0.33rc1 changes.

#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-or-later
#
# $Id: version.sh,v 1.1 2026/05/08 03:23:59 asm Exp $
#
# Gets version string.
# Called by configure.ac via m4_esyscmd_s.
#
# Copyright (C) 2026 Free Software Foundation, Inc.
#
# Author: Anton McClure <asm@gnu.org>

if [ -f .ver ]; then
    ver=$(cat .ver)
    if [ -z "$ver" ]; then
        echo "error: .ver is empty" >&2
        exit 1
    fi
    echo "$ver"
    exit 0
fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>