Last active
November 7, 2025 13:46
-
-
Save louisroyer/539e27d1015e5fb9e937490c7c511b9e to your computer and use it in GitHub Desktop.
Build my thesis from overleaf .zip export
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| help() { | |
| echo "Usage: $0 <path-to-these.zip>" | |
| } | |
| if [ "$#" -ne 1 ]; then | |
| help | |
| exit 1 | |
| fi | |
| THESE_DIR=$(mktemp -d) | |
| unzip "$1" -d "$THESE_DIR" | |
| cd "$THESE_DIR" | |
| make | |
| cd - | |
| mv "$THESE_DIR/these.pdf" "${1%.zip}.pdf" | |
| rm -r "$THESE_DIR" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment