[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] changelog testing



we rotate a date based set of changelogs now.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 scripts/debian/import_testing.sh |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/scripts/debian/import_testing.sh b/scripts/debian/import_testing.sh
index 566d635..e699a67 100755
--- a/scripts/debian/import_testing.sh
+++ b/scripts/debian/import_testing.sh
@@ -37,8 +37,13 @@ cd $masterdir
 echo "Importing new data for testing into projectb"
 
 # Now load the data
-savelog -l -c 4 ${ftpdir}/dists/testing/ChangeLog
-cat $TESTINGINPUT | dak control-suite --set testing --britney
+rm ${ftpdir}/dists/testing/ChangeLog
+cat ${TESTINGINPUT} | dak control-suite --set testing --britney
+NOW=$(date "+%Y%m%d%H%M")
+cd ${ftpdir}/dists/testing/
+mv ChangeLog ChangeLog.${NOW}
+ln -s ChangeLog.${NOW} ChangeLog
+find . -maxdepth 1 -mindepth 1 -type f -print0 -mmin +1800 -name 'ChangeLog.*' | xargs --no-run-if-empty -0 rm
 
 echo "Done"
 
-- 
1.5.6.5


Reply to: