summaryrefslogtreecommitdiff
path: root/nuttx/tools/version.sh
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-04-19 18:35:06 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-04-19 18:35:06 -0600
commitcce5af04eab27f136d48a5d06f5ac97b22e6b627 (patch)
treeee0ba220bf6921fa4f2d7221dd991b5f8e782b56 /nuttx/tools/version.sh
parent2d32b627f6f91e9f70ea20a481adf91dd8d27e99 (diff)
downloadpx4-nuttx-cce5af04eab27f136d48a5d06f5ac97b22e6b627.tar.gz
px4-nuttx-cce5af04eab27f136d48a5d06f5ac97b22e6b627.tar.bz2
px4-nuttx-cce5af04eab27f136d48a5d06f5ac97b22e6b627.zip
Fix comments, references to the old SVN, and links to the old SVN. Replace with equivalent GIT info
Diffstat (limited to 'nuttx/tools/version.sh')
-rwxr-xr-xnuttx/tools/version.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/tools/version.sh b/nuttx/tools/version.sh
index d15adb186..fed9c00ff 100755
--- a/nuttx/tools/version.sh
+++ b/nuttx/tools/version.sh
@@ -109,17 +109,17 @@ if [ "X${MAJOR}" = "X${VERSION}" ]; then
fi
MINOR=`echo ${VERSION} | cut -d'.' -f2`
-# Get SVN information (if not provided on the command line)
+# Get GIT information (if not provided on the command line)
if [ -z "${BUILD}" ]; then
- SVNINFO=`svn info 2>/dev/null | fgrep 'Revision:'`
- if [ -z "${SVNINFO}" ]; then
- echo "SVN version information is not available"
+ GITINFO=`git log 2>/dev/null | head 1`
+ if [ -z "${GITINFO}" ]; then
+ echo "GIT version information is not available"
exit 3
fi
- BUILD=`echo ${SVNINFO} | cut -d' ' -f2`
+ BUILD=`echo ${GITINFO} | cut -d' ' -f2`
if [ -z "${BUILD}" ]; then
- echo "SVN build information not found"
+ echo "GIT build information not found"
exit 4
fi
fi