Skip to content

Commit 75c3f96

Browse files
committed
Setting up release of 'old' for 4th May 2018
Merge commit '1e523e52465cfe46874f7b7d0d1bae8b341a8881'
2 parents 6535129 + 1e523e5 commit 75c3f96

File tree

808 files changed

+21913
-8172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

808 files changed

+21913
-8172
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "utilities/externals/SixDeskDB"]
2+
path = utilities/externals/SixDeskDB
3+
url = git://github.com/SixTrack/SixDeskDB

boinc_software/cronjobs/clean.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
nDays=60
4+
5+
echo ""
6+
echo "--> cleaning at `date`"
7+
8+
#
9+
echo "--> remove all files older than ${nDays} days..."
10+
find . -mtime +${nDays} -name "*.zip" -print -exec rm {} \;
11+
12+
#
13+
echo "--> remove all directories with no .zip files at all"
14+
for tmpDir in `find . -maxdepth 1 -type d -exec bash -c "echo -ne '{} '; ls '{}' | wc -l" \; | awk '$NF==1 {print ($1)}'` ; do
15+
deleteDir=`find ${tmpDir} -maxdepth 1 -type d -exec bash -c "echo -ne '{} '; ls '{}' | wc -l" \; | awk '$NF==0 {print ($1)}'`
16+
if [ -n "${deleteDir}" ] ; then
17+
tree ${tmpDir}
18+
rm -rf ${tmpDir}
19+
fi
20+
done

0 commit comments

Comments
 (0)