mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-11-22 07:11:55 +00:00
second-order hack
This commit is contained in:
parent
c454985f03
commit
c5e9323eed
9
noinfo/allwallets.sh
Normal file
9
noinfo/allwallets.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#/bin/sh
|
||||||
|
|
||||||
|
for i in 2014 2015 2015.old 2016 2017 2018 2019; do
|
||||||
|
echo $i
|
||||||
|
cp -p wallets.py $i
|
||||||
|
cd $i
|
||||||
|
python wallets.py /mnt/d/CUCC-Expo/Loser
|
||||||
|
cd ..
|
||||||
|
done
|
25
noinfo/scp-index-pages.sh
Normal file
25
noinfo/scp-index-pages.sh
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#/bin/sh
|
||||||
|
# Because wallets.py carefully re-sets the timestamp for the generated index.html files to be the same as the contents.json,
|
||||||
|
# there is no way for rsync to recognise that new pages have been generated. So I use this scp script to update them
|
||||||
|
# on the server after running wallets.py on my home machine
|
||||||
|
# 2020-01-01 Philip Sargent
|
||||||
|
|
||||||
|
date >scp-log.txt
|
||||||
|
start=$SECONDS
|
||||||
|
|
||||||
|
#for i in 2014 2015 2015.old 2016 2017 2018 2019; do
|
||||||
|
for i in 2019; do
|
||||||
|
echo $i
|
||||||
|
echo $i >>scp-log.txt
|
||||||
|
cd $i
|
||||||
|
for j in `ls -d ${i:0:4}*` ; do
|
||||||
|
echo $i/$j
|
||||||
|
scp $j/index.html expo@expo.survex.com:expofiles/surveyscans/$i/$j >>../scp-log.txt
|
||||||
|
done
|
||||||
|
cd ..
|
||||||
|
duration=$(( SECONDS - start ))
|
||||||
|
echo $duration seconds so far
|
||||||
|
done
|
||||||
|
|
||||||
|
duration=$(( SECONDS - start ))
|
||||||
|
echo $duration seconds overall
|
Loading…
Reference in New Issue
Block a user