summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-21 22:14:03 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-21 22:14:03 +0000
commit15602a1da2b9489101b7e4aa395e9d036e870061 (patch)
tree5579a592be9631026e52926c6af010950c3f5736
parentaa6acd09ef4900ece87a4d5e0fde449ba7bdb8e2 (diff)
downloadpx4-nuttx-15602a1da2b9489101b7e4aa395e9d036e870061.tar.gz
px4-nuttx-15602a1da2b9489101b7e4aa395e9d036e870061.tar.bz2
px4-nuttx-15602a1da2b9489101b7e4aa395e9d036e870061.zip
More prep for 6.0 release
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3409 42af7a65-404d-4744-a932-0658087f49c3
-rwxr-xr-xnuttx/tools/zipme.sh31
1 files changed, 15 insertions, 16 deletions
diff --git a/nuttx/tools/zipme.sh b/nuttx/tools/zipme.sh
index 448a53a57..a0410a87f 100755
--- a/nuttx/tools/zipme.sh
+++ b/nuttx/tools/zipme.sh
@@ -53,13 +53,13 @@ fi
MYNAME=`basename $0`
if [ -x ${WD}/${MYNAME} ] ; then
- PROJECTS="${WD}/../../.."
+ TRUNKDIR="${WD}/../.."
else
if [ -x ${WD}/tools/${MYNAME} ] ; then
- PROJECTS="${WD}/../.."
+ TRUNKDIR="${WD}/.."
else
- if [ -x ${WD}/nuttx/tools/${MYNAME} ] ; then
- PROJECTS="${WD}/.."
+ if [ -x ${WD}/nuttx-${VERSION}/tools/${MYNAME} ] ; then
+ TRUNKDIR="${WD}"
else
echo "You must cd into the NUTTX directory to execute this script."
exit 1
@@ -69,7 +69,6 @@ fi
# Get the NuttX directory names and the path to the parent directory
-TRUNKDIR=${PROJECTS}/trunk
NUTTX=${TRUNKDIR}/nuttx-${VERSION}
APPDIR=${TRUNKDIR}/apps-${VERSION}
@@ -84,12 +83,12 @@ cd ${TRUNKDIR} || \
{ echo "Failed to cd to ${TRUNKDIR}" ; exit 1 ; }
if [ ! -d nuttx-${VERSION} ] ; then
- echo "Directory ${PROJECTS}/nuttx-${VERSION} does not exist!"
+ echo "Directory ${TRUNKDIR}/nuttx-${VERSION} does not exist!"
exit 1
fi
-if [ ! -d app-${VERSION} ] ; then
- echo "Directory ${PROJECTS}/nuttx-${VERSION} does not exist!"
+if [ ! -d apps-${VERSION} ] ; then
+ echo "Directory ${TRUNKDIR}/apps-${VERSION} does not exist!"
exit 1
fi
@@ -125,33 +124,33 @@ chmod 755 ${NUTTX}/.version
# Perform a full clean for the distribution
-cd ${PROJECTS} || \
- { echo "Failed to cd to ${PROJECTS}" ; exit 1 ; }
+cd ${TRUNKDIR} || \
+ { echo "Failed to cd to ${TRUNKDIR}" ; exit 1 ; }
make -C ${NUTTX} distclean
# Remove any previous tarballs
if [ -f ${NUTTX_TARNAME} ] ; then
- echo "Removing ${PROJECTS}/${NUTTX_TARNAME}"
+ echo "Removing ${TRUNKDIR}/${NUTTX_TARNAME}"
rm -f ${NUTTX_TARNAME} || \
{ echo "rm ${NUTTX_TARNAME} failed!" ; exit 1 ; }
fi
if [ -f ${NUTTX_ZIPNAME} ] ; then
- echo "Removing ${PROJECTS}/${NUTTX_ZIPNAME}"
+ echo "Removing ${TRUNKDIR}/${NUTTX_ZIPNAME}"
rm -f ${NUTTX_ZIPNAME} || \
{ echo "rm ${NUTTX_ZIPNAME} failed!" ; exit 1 ; }
fi
if [ -f ${APPS_TARNAME} ] ; then
- echo "Removing ${PROJECTS}/${APPS_TARNAME}"
+ echo "Removing ${TRUNKDIR}/${APPS_TARNAME}"
rm -f ${APPS_TARNAME} || \
{ echo "rm ${APPS_TARNAME} failed!" ; exit 1 ; }
fi
if [ -f ${APPS_ZIPNAME} ] ; then
- echo "Removing ${PROJECTS}/${APPS_ZIPNAME}"
+ echo "Removing ${TRUNKDIR}/${APPS_ZIPNAME}"
rm -f ${APPS_ZIPNAME} || \
{ echo "rm ${APPS_ZIPNAME} failed!" ; exit 1 ; }
fi
@@ -161,12 +160,12 @@ fi
cd ${TRUNKDIR} || \
{ echo "Failed to cd to ${TRUNKDIR}" ; exit 1 ; }
-${TAR} ${NUTTX_TARNAME} nuttx-${VERSION}/nuttx || \
+${TAR} ${NUTTX_TARNAME} nuttx-${VERSION} || \
{ echo "tar of ${NUTTX_TARNAME} failed!" ; exit 1 ; }
${ZIP} ${NUTTX_TARNAME} || \
{ echo "zip of ${NUTTX_TARNAME} failed!" ; exit 1 ; }
-${TAR} ${APPS_TARNAME} nuttx-${VERSION}/nuttx || \
+${TAR} ${APPS_TARNAME} apps-${VERSION} || \
{ echo "tar of ${APPS_TARNAME} failed!" ; exit 1 ; }
${ZIP} ${APPS_TARNAME} || \
{ echo "zip of ${APPS_TARNAME} failed!" ; exit 1 ; }