Skip to content

Commit

Permalink
Add packaging script
Browse files Browse the repository at this point in the history
  • Loading branch information
lggruspe committed Mar 30, 2023
1 parent ee103f9 commit b0a34fc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ python -m simphones <output file>

## Licenses

Copyright 2023 Levi Gruspe

The scripts in this repository are licensed under [GPLv3 or later](./LICENSES/GNU_GPLv3.txt).

`simphones.csv`, which is a derivative work of [PHOIBLE 2.0](https://phoible.org/), is released under a [Creative Commons Attribution-ShareAlike 3.0 Unported License](./LICENSES/CC_BY-SA_3.0.txt).
Expand Down
15 changes: 15 additions & 0 deletions scripts/bundle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

# Bundle CSV, README and LICENSE files.

ra="$(pwd)"
temp="$(mktemp -d)"
path="$temp/simphones-0.1.0"
mkdir -p "$path"
cp README.md simphones.csv "$path"
cp LICENSES/CC_BY-SA_3.0.txt "$path/LICENSE.txt"
cd "$temp" || exit 1
tar -czvf simphones-0.1.0.tar.gz simphones-0.1.0
mv simphones-0.1.0.tar.gz "$ra"
cd "$ra" || exit 1
rm -rf "$temp"

0 comments on commit b0a34fc

Please sign in to comment.