Skip to content

Commit

Permalink
Update packaging script
Browse files Browse the repository at this point in the history
  • Loading branch information
lggruspe committed Apr 7, 2023
1 parent 80bd607 commit b093764
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

# Bundle CSV, README and LICENSE files.

version="0.1.1"
ra="$(pwd)"
temp="$(mktemp -d)"
path="$temp/simphones-0.1.0"
path="$temp/simphones-$version"
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"
tar -czvf "simphones-$version.tar.gz" "simphones-$version"
mv "simphones-$version.tar.gz" "$ra"
cd "$ra" || exit 1
rm -rf "$temp"

0 comments on commit b093764

Please sign in to comment.