summaryrefslogtreecommitdiff
path: root/misc/pascal
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-05 16:49:05 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-05 16:49:05 +0000
commit63dd58c0c99fa113ddd093bff830d926da859638 (patch)
treebe3dd868a97002d63c03a031ff2c347d5b6c07ae /misc/pascal
parente18a124cfca09ef0eb9899778d29447ed0ceb6d6 (diff)
downloadnuttx-63dd58c0c99fa113ddd093bff830d926da859638.tar.gz
nuttx-63dd58c0c99fa113ddd093bff830d926da859638.tar.bz2
nuttx-63dd58c0c99fa113ddd093bff830d926da859638.zip
Delete bad directories
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@508 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc/pascal')
-rwxr-xr-xmisc/pascal/zipme22
1 files changed, 18 insertions, 4 deletions
diff --git a/misc/pascal/zipme b/misc/pascal/zipme
index 1d9d87194..202be8d8c 100755
--- a/misc/pascal/zipme
+++ b/misc/pascal/zipme
@@ -5,19 +5,26 @@
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="\
+ insn32/plopt\
+"
# Move up one directory
cd ..
HOME=`pwd`
DIR=${HOME}/pascal
-SUBDIR=pascal
+SUBDIR=pascal-${DATECODE}
# 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 date code like a.b.c as a parameter"
exit 1;
fi
@@ -34,7 +41,14 @@ fi
# Define the ZIP file pathes
TAR_NAME=${SUBDIR}-${DATECODE}.tar
-ZIP_NAME=${TAR_NAME}.bz2
+ZIP_NAME=${TAR_NAME}.gz
+
+# Prepare the nuttx directory -- Remove garbage directories
+
+for dir in ${GARBAGEDIRS}; do
+ echo "Removing ${NUTTX}/${dir}"
+ rm -rf ${NUTTX}/${dir}
+done
# Prepare the directory