Skip to content

Commit

Permalink
Add script for generating supplementary material zip file.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdusell committed Mar 12, 2022
1 parent c71c6cd commit ad65a78
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ data/
experiments/
tests/
ignore/
code.zip

Dockerfile*
**/.docker*
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/data/mikolov-ptb/
/ignore/
/code.zip
/*.sif
/.venv/

__pycache__/
/*.sif
/ignore/
*.swp
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ beforehand to enter a shell with Poetry's virtualenv enabled all the time. You
should run both Python and Bash scripts with Poetry, because the Bash scripts
might call out to Python scripts.

All scripts under `scripts/` should be run with the top-level directory as the
current working directory.

## Running Experiments

The [`experiments`](experiments) directory contains scripts for reproducing
Expand Down
19 changes: 19 additions & 0 deletions scripts/generate-code-submission.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generate a zip file to be uploaded as supplementary material for the paper.
set -e
rm -f code.zip
zip -r code.zip . \
--include \
'data/syntaxgym/*' \
'data/circuits.json' \
'Dockerfile*' \
'.docker*' \
'experiments/*' \
'poetry.lock' \
'pyproject.toml' \
'README.md' \
'scripts/*' \
'src/*' \
'tests/*' \
--exclude \
'*/__pycache__/*' \
'*.swp'

0 comments on commit ad65a78

Please sign in to comment.