[CVS] scripts/nikolai_playground export_all,NONE,1.1
Update of /cvsroot/l10n-russian/scripts/nikolai_playground
In directory haydn:/tmp/cvs-serv13162
Added Files:
export_all
Log Message:
update the sync scripts
--- NEW FILE: export_all ---
#!/bin/bash
LC_ALL=C date
for i in *
do
if [ -x "$i/export" ]
then
b=`basename $i`
for a in `seq 1 ${#b}`
do
echo -n "-"
done
echo
echo $b
for a in `seq 1 ${#b}`
do
echo -n "-"
done
echo
cd $i && ./export && cd ..
fi
done | tee logs/sync_`date +%Y-%m-%d-%H-%M`.log
# Clean up
cd logs
ANZAHL=`ls -1 sync_* | wc -l`
while [ $ANZAHL -gt 51 ]
do
ANZAHL=`ls -1 sync_* | wc -l`
file=`ls -1 sync_* | head -n 1`
rm $file
done
cd ..
Reply to: