commit 4e166b7832a8026690950ca8f8e971998b3a0bcb
Author: Karsten Loesing <karsten.loes...@gmx.net>
Date:   Mon Mar 19 20:59:34 2018 +0100

    Include webstats in create-tarballs.sh.
---
 src/main/resources/create-tarballs.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/main/resources/create-tarballs.sh 
b/src/main/resources/create-tarballs.sh
index c20303e..cd16b2d 100755
--- a/src/main/resources/create-tarballs.sh
+++ b/src/main/resources/create-tarballs.sh
@@ -105,8 +105,15 @@ for (( i = 0 ; i < ${#TARBALLS[@]} ; i++ )); do
   fi
 done
 
+cd $OUTDIR/webstats/
+echo `date` "Creating webstats-"$YEARONE"-"$MONTHONE".tar"
+find . -type f | grep "/"$YEARONE"/"$MONTHONE"/" | cut -c3- | tar cf 
$WORKDIR/webstats-$YEARONE-$MONTHONE.tar --transform 
's,^,webstats-'$YEARONE'-'$MONTHONE'/,' -T -
+echo `date` "Creating webstats-"$YEARTWO"-"$MONTHTWO".tar"
+find . -type f | grep "/"$YEARTWO"/"$MONTHTWO"/" | cut -c3- | tar cf 
$WORKDIR/webstats-$YEARTWO-$MONTHTWO.tar --transform 
's,^,webstats-'$YEARTWO'-'$MONTHTWO'/,' -T -
+cd $WORKDIR
+
 echo `date` "Moving tarballs into place"
-mv *.tar.xz $TARBALLTARGETDIR
+mv *.tar* $TARBALLTARGETDIR
 
 cd $CURRENTPATH
 
@@ -154,4 +161,7 @@ ln -f -s -t $ARCHIVEDIR/relay-descriptors/votes/ 
$TARBALLTARGETDIR/votes-20??-??
 mkdir -p $ARCHIVEDIR/torperf/
 ln -f -s -t $ARCHIVEDIR/torperf/ $TARBALLTARGETDIR/torperf-20??-??.tar.xz
 
+mkdir -p $ARCHIVEDIR/webstats/
+ln -f -s -t $ARCHIVEDIR/webstats/ $TARBALLTARGETDIR/webstats-20??-??.tar
+
 echo `date` "Finished."



_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to