Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A very basic and crude test is in place
- Loading branch information
1 parent
bc368c4
commit 624813a
Showing
3 changed files
with
46 additions
and
241 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
style_list=$(pygmentize -L styles | grep -e '* ' | sed -e 's/^\* //g' | sed -e 's/:$//g') | ||
|
||
echo "<div id=\"style_options\">" | ||
echo "<p>Choose a pygments style</p>" | ||
for style in $style_list | ||
do | ||
pygmentize -S $style -f html -a .codehilite > $style.css | ||
echo -e "<a href=\"#\" name=\"$style\" >$style</a>" | ||
done | ||
echo "</div><br />" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
# Build the Python distribution | ||
|
||
set -e | ||
|
||
erase='' | ||
while getopts 'r' opts | ||
do | ||
case $opts in | ||
r) | ||
erase='true' | ||
esac | ||
done | ||
|
||
# source the settings and activate the virtualenv | ||
THIS_DIR=$(readlink -f $(dirname $BASH_SOURCE)) | ||
. $THIS_DIR/../.settings.sh | ||
|
||
buildenv | ||
|
||
cd $TOP_DIR | ||
|
||
if [[ -n $erase ]]; then | ||
echo "erasing the Python distribution files" | ||
rm -fr dist | ||
README.txt | ||
else | ||
vimdown README.vim -o README.txt | ||
python setup.py sdist | ||
fi | ||
|
||
|
||
cd - |