summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-27 16:20:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-27 16:20:47 +0000
commit1223d94c59c1d30c5ce71bfdb2292fc67368949d (patch)
tree9beb60b92d0a18dead3f2f93715224269cabe67f
parent938cfadb92f97978e6cc806e9b71e7ff07135d70 (diff)
downloadnuttx-1223d94c59c1d30c5ce71bfdb2292fc67368949d.tar.gz
nuttx-1223d94c59c1d30c5ce71bfdb2292fc67368949d.tar.bz2
nuttx-1223d94c59c1d30c5ce71bfdb2292fc67368949d.zip
Use gzip instead of bzip2
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@160 42af7a65-404d-4744-a932-0658087f49c3
-rwxr-xr-xnuttx/tools/zipme.sh24
1 files changed, 21 insertions, 3 deletions
diff --git a/nuttx/tools/zipme.sh b/nuttx/tools/zipme.sh
index 4b9a3ea40..8b2f6b3ee 100755
--- a/nuttx/tools/zipme.sh
+++ b/nuttx/tools/zipme.sh
@@ -38,12 +38,21 @@ WD=`pwd`
DATECODE=$1
TAR="tar cvf"
-ZIP=bzip2
+ZIP=gzip
+
+# This is a list of bad directories that have creapt into the CVS tree
+# due to bad imports, renamed directories, etc.
+
+GARBAGEDIRS="\
+ configs/m68332evb/src/src\
+ configs/m68332evb/src/include\
+ configs/m68332evb/src/doc\
+"
# Make sure we know what is going on
if [ -z ${DATECODE} ] ; then
- echo "You must supply a date code like MMDDYY as a parameter"
+ echo "You must supply a version like xx.yy.zz as a parameter"
exit 1;
fi
@@ -74,13 +83,22 @@ fi
TAR_NAME=nuttx-${DATECODE}.tar
ZIP_NAME=${TAR_NAME}.bz2
-# Prepare the nuttx directory
+# Prepare the nuttx directory -- Remove editor garbage
find ${NUTTXDIR} -name '*~' -exec rm -f '{}' ';' || \
{ echo "Removal of emacs garbage failed!" ; exit 1 ; }
find ${NUTTXDIR} -name '*.swp' -exec rm -f '{}' ';' || \
{ echo "Removal of VI garbage failed!" ; exit 1 ; }
+# Prepare the nuttx directory -- Remove garbage directories
+
+for dir in ${GARBAGEDIRS}; do
+ echo "Removing ${NUTTX}/${dir}"
+ rm -rf ${NUTTX}/${dir}
+done
+
+# Perform a full clean for the distribution
+
make -C ${NUTTX} distclean
# Remove any previous tarballs