Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 9356222

Browse files
committed
add pretext xml file to build
1 parent f38a269 commit 9356222

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

makeRelease.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ read -p "Did you update/commit the version in setup.py " yn
2020
esac
2121
done
2222

23-
rm dist/*
23+
rm -f dist/*
2424
npm run dist
2525
python setup.py sdist
2626
pip wheel --no-index --no-deps --global-option bdist_wheel --wheel-dir dist dist/*.tar.gz
@@ -33,3 +33,18 @@ echo "tagging this release and pushing to github"
3333

3434
git tag -a $1 -m 'tag new version'
3535
git push --follow-tags
36+
37+
38+
if [ -d ~/.virtualenvs/json2xml ]
39+
then
40+
41+
echo "Creating dist for PreTeXt"
42+
source ~/.virtualenvs/json2xml/bin/activate
43+
python dist2xml.py $1 > runestone/dist/webpack_static_imports.xml
44+
cd runestone
45+
tar zcf dist-$1.tgz dist
46+
else
47+
echo "Warning: no json2xml ve found skipping pretext"
48+
fi
49+
50+

0 commit comments

Comments
 (0)