forked from bsimic0001/django-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-sdist.sh
executable file
·34 lines (25 loc) · 905 Bytes
/
build-sdist.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
# Ensure we're in the right directory
cd "$(dirname "$0")"
CHANGELOG="CHANGELOG.md"
echo "Creating CHANGELOG.md"
echo "Latest Changes" > $CHANGELOG
echo "==============" >> $CHANGELOG
echo "Compiled on: `date`" >> $CHANGELOG
echo "\nThis file is auto-generated upon every new release. To review the latest commits in the master branch, please refer to: https://github.com/benjaoming/django-wiki/commits/master"
echo "" >> $CHANGELOG
git log --graph --pretty=format:'%h -%d %s (%cr) <%an>' --abbrev-commit | sed "s/^/ /" >> $CHANGELOG
echo "Compiling LESS files to CSS..."
./build-less.sh
echo "Building docs..."
cd docs
make html
cd ..
echo "Building model chart PDF (needs graphviz)..."
cd testproject/
./manage.py wikiviz wiki --inheritance | dot -Tpdf -o ../model_chart_wiki.pdf
cd ..
echo "Building Python source distribution..."
rm -Rf *egg-info/
python setup.py sdist