Deleted Added
full compact
make-toolchain-version (275192) make-toolchain-version (295577)
1#!/bin/sh
2#
3# This script generates a project-wide version identifier for use by
4# the `elftc_version()' API.
5#
1#!/bin/sh
2#
3# This script generates a project-wide version identifier for use by
4# the `elftc_version()' API.
5#
6# $Id: make-toolchain-version 2583 2012-09-14 09:49:25Z jkoshy $
6# $Id: make-toolchain-version 3299 2016-01-09 19:58:46Z jkoshy $
7
8#
9# Defaults.
10#
11buildhost=`uname -s`
12elftcname="elftoolchain"
13options="e:h:o:r:t:"
14top=""

--- 44 unchanged lines hidden (view full) ---

59# - If SVN is detected, we use the `svninfo' tool to determine the
60# in-tree revision number.
61# - If CVS is detected, we use the string `unknown'.
62# - Otherwise, we use `git --describe'.
63
64curdir=`pwd`
65cd ${top} || usage "ERROR: Cannot change directory to \"${top}\"."
66
7
8#
9# Defaults.
10#
11buildhost=`uname -s`
12elftcname="elftoolchain"
13options="e:h:o:r:t:"
14top=""

--- 44 unchanged lines hidden (view full) ---

59# - If SVN is detected, we use the `svninfo' tool to determine the
60# in-tree revision number.
61# - If CVS is detected, we use the string `unknown'.
62# - Otherwise, we use `git --describe'.
63
64curdir=`pwd`
65cd ${top} || usage "ERROR: Cannot change directory to \"${top}\"."
66
67if [ -d .svn ]; then # FreeBSD and SF.Net sources.
67if [ -d .svn -o -d ../.svn ]; then # FreeBSD and SF.Net sources.
68 versionstring=" svn:"$(svnversion)
69elif [ -d CVS ]; then # NetBSD.
70 versionstring=" cvs:unknown"
71else # DragonFlyBSD.
72 versionstring=" git:"$(git describe --all --dirty --long 2> /dev/null)
73
74 # Cannot determine an in-tree version number.
75 if [ $? -ne 0 ]; then

--- 29 unchanged lines hidden ---
68 versionstring=" svn:"$(svnversion)
69elif [ -d CVS ]; then # NetBSD.
70 versionstring=" cvs:unknown"
71else # DragonFlyBSD.
72 versionstring=" git:"$(git describe --all --dirty --long 2> /dev/null)
73
74 # Cannot determine an in-tree version number.
75 if [ $? -ne 0 ]; then

--- 29 unchanged lines hidden ---