[b1f6a9]: x86-mingw32-build.sh.version Maximize Restore History

Download this file

x86-mingw32-build.sh.version    70 lines (61 with data), 2.1 kB

#!/bin/sh
# x86-mingw32-build.sh.version -*- sh -*- vim: filetype=sh
# $Id$
#
# Version identification for x86-mingw32-build.sh script.
#
  PACKAGE_VERSION_MAJOR=1
  PACKAGE_VERSION_MINOR=0
  PACKAGE_VERSION_PATCH=1
#
# Define `SNAPSHOT' to a non-null `YYYYMMDD-R' string, only when creating
# a snapshot release.
#
  SNAPSHOT=""
#
# Copyright (C) 2006, 2009, 2010, MinGW Project
# Written by Keith Marshall <keithmarshall@users.sourceforge.net>
#
# This file is a component of the x86-mingw32-build script; it is not
# intended for stand alone use.
# 
# x86-mingw32-build is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version.
# 
# x86-mingw32-build is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for further details.
# 
# You should have received a copy of the GNU General Public License along
# with x86-mingw32-build; see the file COPYING.  If not, write to the Free
# Software Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301,
# USA.

echo=false

for argv
do
  arg=$argv
  case $arg in --*) ;; -*) arg="-$arg" ;; esac

  case $arg in
    --echo)     echo=true ;;
    --no-echo)  echo=false ;;
    --no-patch) PACKAGE_VERSION_PATCH="" SNAPSHOT="" ;;

    *=*) eval `IFS==; set x $arg; echo $2`='`echo $arg | sed s"/^[^=]*=//"`' ;;

    *) echo >&2 "$0: invalid option: '$argv'" ; exit 2 ;;
  esac
done

extend()
# usage: extend VarName Separator Suffix
#
# If `Suffix' is not a null string, append it to the current content
# of `$VarName', separated from it by `Separator'.
{
  test -n "$3" && eval $1='$'$1'$2$3'
}

PACKAGE_VERSION=$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR
extend PACKAGE_VERSION . "$PACKAGE_VERSION_PATCH"
extend PACKAGE_VERSION - "$SNAPSHOT"
$echo && echo $PACKAGE_VERSION

# $RCSfile$Revision: 1.3 $: end of file