From 8383056d3888280ddd2f9c3f705b0fc81a2b9f4a Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Wed, 17 Oct 2018 16:09:30 -0400 Subject: [PATCH] - added cleaning script --- bin/clean.sh | 9 +++++++++ bin/deploy_pip.sh | 2 ++ 2 files changed, 11 insertions(+) create mode 100755 bin/clean.sh diff --git a/bin/clean.sh b/bin/clean.sh new file mode 100755 index 0000000..56a2f94 --- /dev/null +++ b/bin/clean.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Get working dir (this will make sure that the script will work the same anywhere you run it) +WK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $WK_DIR +cd .. + +rm build -rf +rm dist -rf +rm pdfmajor.egg-info -rf \ No newline at end of file diff --git a/bin/deploy_pip.sh b/bin/deploy_pip.sh index b362a40..529fbb1 100755 --- a/bin/deploy_pip.sh +++ b/bin/deploy_pip.sh @@ -4,5 +4,7 @@ WK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $WK_DIR cd .. +sh bin/clean/sh + python setup.py sdist bdist_wheel twine upload dist/* \ No newline at end of file