From 6a672d3a8b98fa38c705ebaa5728408660ae18a7 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 4 Jul 2013 15:42:40 +1000 Subject: [PATCH] Don't put TEST_SICS at the top directory and clean any *.pyc files --- site_ansto/instrument/deploySICS.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/site_ansto/instrument/deploySICS.sh b/site_ansto/instrument/deploySICS.sh index 7246960c..d2e8f9cb 100755 --- a/site_ansto/instrument/deploySICS.sh +++ b/site_ansto/instrument/deploySICS.sh @@ -169,9 +169,6 @@ then mkdir -p $TEMPDIR/$DESTDIR FILEMAP=$TEMPDIR/$DESTDIR/FILEMAP.TXT init_file_map - #copy TEST_SICS/fakeDMC and remove .svn any directories - cp -v -a $SRCDIR/TEST_SICS/* $TEMPDIR/$DESTDIR >>$FILEMAP - rm -fr $(find $TEMPDIR/$DESTDIR -name .svn) # step down to the sics directory DESTDIR=$DESTDIR/$SICSDIR mkdir -p $TEMPDIR/$DESTDIR @@ -242,6 +239,8 @@ rm -rf $(find $TARDIR -type d -name .svn) find $TARDIR -type f -name .\*.sw\? -exec rm {} \; # remove any editor backup files directories find $TARDIR -type f -name \*~ -exec rm {} \; +# remove any compiled python files +find $TARDIR -type f -name \*.pyc -exec rm {} \; # set modes for files find $TARDIR -type f -exec chmod u-s,g-x+wr,o-wx+r {} \; find $TARDIR -type f -perm -100 -exec chmod go+x {} \;