Skip to content
Snippets Groups Projects
Commit f32009d4 authored by patacongo's avatar patacongo
Browse files

More version-related fixes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3504 42af7a65-404d-4744-a932-0658087f49c3
parent b27d4494
No related branches found
No related tags found
No related merge requests found
......@@ -258,6 +258,7 @@ $(TOPDIR)/.version:
@if [ ! -f .version ]; then \
echo "No .version file found, creating one"; \
tools/version.sh -v 0.0 -b 0 .version; \
chmod 755 .version; \
fi
# Create the include/nuttx/version.h file
......
......@@ -121,7 +121,7 @@ if [ -z "${appdir}" ]; then
# Check for a version file
unset CONFIG_NUTTX_VERSION
unset CONFIG_VERSION_STRING
if [ -x "${TOPDIR}/.version" ]; then
source "${TOPDIR}/.version"
fi
......@@ -134,8 +134,8 @@ if [ -z "${appdir}" ]; then
else
# Check for a versioned apps/ directory
if [ -d "${TOPDIR}/../apps-${CONFIG_NUTTX_VERSION}" ]; then
appdir="../apps-${CONFIG_NUTTX_VERSION}"
if [ -d "${TOPDIR}/../apps-${CONFIG_VERSION_STRING}" ]; then
appdir="../apps-${CONFIG_VERSION_STRING}"
fi
fi
fi
......
......@@ -124,6 +124,7 @@ if [ ! -x "${VERSIONSH}" ]; then
fi
${VERSIONSH} -v ${VERSION} ${NUTTX}/.version || \
{ echo "${VERSIONSH} failed"; cat ${NUTTX}/.version; exit 1; }
chmod 755 ${NUTTX}/.version
# Perform a full clean for the distribution
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment