-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c87d0e6
commit b8806f7
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Save the git repo path | ||
GIT_REPO_DIRECTORY=$(dirname "$0") | ||
|
||
# Absolute path to this script, e.g. /home/user/bin/foo.sh | ||
SCRIPT=$(readlink -f "$0") | ||
SCRIPT_PATH=$(dirname "$SCRIPT") | ||
|
||
TEMP_REPO_PATH="$(dirname "$SCRIPT")/tmp/site" | ||
|
||
mkdir "$(dirname "$SCRIPT")/tmp/" | ||
mkdir $TEMP_REPO_PATH | ||
|
||
# Upload the English terms | ||
python -m src.cli docs/TERMS_EN.md $TEMP_REPO_PATH/terms.pdf | ||
|
||
# Copy the CNAME file to the directory | ||
cp "$SCRIPT_PATH/src/CNAME" $TEMP_REPO_PATH |