Clean up utility files

master
RunasSudo 4 months ago
parent 395de771fa
commit cb1cc5fb72
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
  1. 3
      rustc_bs.sh
  2. 0
      scripts/benchmark.sh
  3. 0
      scripts/build_docs.sh
  4. 0
      scripts/build_homepage.sh
  5. 0
      scripts/build_wasm.sh
  6. 0
      scripts/coverage.sh
  7. 31
      scripts/deploy.sh
  8. 0
      scripts/mkbaseline.sh
  9. 2
      scripts/profile.sh
  10. 66
      test.csp

@ -1,3 +0,0 @@
#!/bin/bash
RUSTC_BOOTSTRAP=1 rustc $@

@ -0,0 +1,31 @@
#!/bin/bash
DESTDIR='/home/runassudo/Documents/Work/School Cloud Data/unenc/public/www/opentally'
# Prevent deploy with unstaged changes
git update-index --refresh > /dev/null
if git diff-index --quiet HEAD -- ; then true; else
echo Cannot deploy with unstaged changes
exit 1
fi
# Rebuild WASM
./scripts/build_wasm.sh
# Build homepage
./scripts/build_homepage.sh
# Copy files
#mkdir "$DESTDIR/stv/"
cp -r html/* "$DESTDIR/stv/"
# Replace GITVERSION, etc.
GITVERSION=$(git rev-parse --short HEAD)
sed -i "s#GITVERSION#$GITVERSION#g" "$DESTDIR/stv/index.html"
sed -i "s#GITVERSION#$GITVERSION#g" "$DESTDIR/stv/index.js"
sed -i "s#GITVERSION#$GITVERSION#g" "$DESTDIR/stv/worker.js"

@ -1,6 +1,6 @@
#!/bin/bash
cargo build --profile perf || exit
rm perf.data
rm target/perf.data
# Burn in
./target/perf/opentally stv tests/data/raw/VIC2022.bin --bin --round-votes 0 --round-quota 0 --quota droop --quota-criterion geq --ties backwards random --random-seed 20210727 --surplus uig --surplus-order by_order --exclusion by_value --pp-decimals 0 $@

@ -1,66 +0,0 @@
Evans,Grey,Thomson,Ames,Reid,Spears,White,$mult
1,0,2,0,0,0,0,1
0,1,0,2,0,0,3,1
3,1,0,0,0,2,4,1
0,1,4,0,3,2,0,1
0,0,1,0,0,0,0,1
0,0,0,1,0,0,0,1
0,0,1,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