Lines Matching +full:revision +full:- +full:id
3 # This script generates a project-wide version identifier for use by
6 # $Id: make-toolchain-version 3731 2019-04-06 14:28:34Z jkoshy $
11 buildhost=`uname -s`
24 if [ -n "${*}" ]; then echo "##${@}"; fi
27 echo " Generate a toolchain-wide version number"
28 echo " -e PROJECTNAME Set the project name [default: ${elftcname}]."
29 echo " -h HOSTOS Set the build OS [default: ${buildhost}]."
30 echo " -o OUTPUT Set the output file [default: ${versionfile}]."
31 echo " -r VERSION Set the version string [default: ${version}]."
32 echo " -t TOPDIR Set the top-of-tree directory [required]."
36 # Determine the revision number for the source tree.
38 # - If CVS is detected, we use the string `unknown'.
39 # - If SVN is detected, we use the `svninfo' tool to determine the
40 # in-tree revision number.
41 # - Otherwise, we use `git --describe'.
45 if [ -d CVS ]; then # Look for CVS (NetBSD).
47 elif [ -d .svn ]; then # An SVN checkout (SourceForge or FreeBSD).
49 if [ -n "${svnversion}" ]; then
53 gitversion="$(git describe --all --dirty --long 2> /dev/null)"
54 if [ -n "${gitversion}" ]; then
78 [ -n "${top}" ] || usage
83 # Determine the in-tree revision number.
85 echo "ERROR: cannot determine a revision number." 1>&2;
94 tmpfile=`mktemp ${TMPDIR:-/tmp}/MV.XXXXXXX`
95 trap "rm -f ${tmpfile};" 0 1 2 3 15
110 if ! cmp -s ${tmpfile} ${versionfile}; then