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 {} \;