cleanup
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Mon, 25 Jan 2010 10:55:17 +0000 (10:55 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Mon, 25 Jan 2010 10:55:17 +0000 (10:55 +0000)
14 files changed:
scripts/dump-db-svn.sh
scripts/functions.sh [deleted file]
scripts/need-review/all-builds.py [moved from scripts/all-builds.py with 94% similarity]
scripts/need-review/alpha-repo.py [moved from scripts/alpha-repo.py with 100% similarity]
scripts/trash/diff-module.sh [moved from scripts/diff-module.sh with 100% similarity]
scripts/trash/import-module.sh [moved from scripts/import-module.sh with 100% similarity]
scripts/trash/matching_passwds.py [moved from scripts/matching_passwds.py with 100% similarity]
scripts/trash/nightly-build-cvs.sh [moved from scripts/nightly-build-cvs.sh with 100% similarity]
scripts/trash/nightly-build.sh [moved from scripts/nightly-build.sh with 100% similarity]
scripts/trash/reboot-all.sh [moved from scripts/reboot-all.sh with 100% similarity]
scripts/trash/tag-module.sh [moved from scripts/tag-module.sh with 100% similarity]
scripts/trash/trash-failed-builds.sh [moved from scripts/trash-failed-builds.sh with 100% similarity]
scripts/trash/trim-vserver-builds.sh [moved from scripts/trim-vserver-builds.sh with 100% similarity]
scripts/trash/zombie-vservers.sh [moved from scripts/zombie-vservers.sh with 100% similarity]

index 362fddc..cf518c8 100755 (executable)
@@ -15,7 +15,33 @@ LATESTLOG=latest.log
 
 REVISION="$Revision$"
 
-source $COMMANDDIR/functions.sh
+### create a symlink in same dir
+# arguments 
+# actual : full path of the actual file
+# link : the link name, only basename is used, will be created in same dir
+function manage_link () {
+    actual=$1; shift
+    latest=$1; shift
+    # go in the right directory
+    cd $(dirname $actual)
+    actualbase=$(basename $actual)
+    # just in case 
+    latest=$(basename $latest)
+    echo "In $(pwd) : linking $actualbase to $latest"
+    rm -f $latest ; ln -s $actualbase $latest
+    # go back to current dir
+    cd -
+}
+    
+# usage
+# clean <where> <keeptime> [... find arguments]
+function clean () {
+    where=$1; shift
+    keeptime=$1; shift
+    echo "== In $where"
+    echo "Cleaning $@ - older than $keeptime days"
+    find $where "$@" -atime +$keeptime | xargs rm 
+}
 
 ###
 
diff --git a/scripts/functions.sh b/scripts/functions.sh
deleted file mode 100644 (file)
index 8815389..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-### -*-sh-*-
-
-
-
-### create a symlink in same dir
-# arguments 
-# actual : full path of the actual file
-# link : the link name, only basename is used, will be created in same dir
-function manage_link () {
-    actual=$1; shift
-    latest=$1; shift
-    # go in the right directory
-    cd $(dirname $actual)
-    actualbase=$(basename $actual)
-    # just in case 
-    latest=$(basename $latest)
-    echo "In $(pwd) : linking $actualbase to $latest"
-    rm -f $latest ; ln -s $actualbase $latest
-    # go back to current dir
-    cd -
-}
-    
-# usage
-# clean <where> <keeptime> [... find arguments]
-function clean () {
-    where=$1; shift
-    keeptime=$1; shift
-    echo "== In $where"
-    echo "Cleaning $@ - older than $keeptime days"
-    find $where "$@" -atime +$keeptime | xargs rm 
-}
-
similarity index 94%
rename from scripts/all-builds.py
rename to scripts/need-review/all-builds.py
index 6225862..ac55cf4 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/python
 subversion_id = "$Id$"
 
+import sys
 from optparse import OptionParser
 
 ##############################
@@ -18,10 +19,14 @@ MAJOR_HASH = {
               'tags': '-t %(pldistro)s-tags-4.2.mk',
               },
     '4.3' : { 'latest': None,
-              'fcdistros' : ['centos5','f10','f8'],
-              'pldistros' : ['planetlab','onelab'],
-#              'tags': '-t %(pldistro)s-tags.mk',
-              'tags': '',
+              'fcdistros' : ['centos5','f12','f10','f8'],
+              'pldistros' : ['onelab'],
+              'tags': '-t %(pldistro)s-tags.mk',
+              },
+    '5.0' : { 'latest': None,
+              'fcdistros' : ['centos5','f12','f10','f8'],
+              'pldistros' : ['onelab'],
+              'tags': '-t %(pldistro)s-k27-tags.mk',
               },
 }