-#!/bin/bash
+#!/bin/sh
# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+# Copyright (C) 2011, 2012 GNU MediaGoblin Contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
mv docs/build/texinfo/ docs/texinfo/
rm -rf docs/build/
- rm -rf docs/source/mgext/*.pyc
else
# this is the old directory structure pre-0.0.4
mv docs/_build/html/ docs/html/
rm -rf docs/_build/
- rm -rf docs/mgext/*.pyc
fi
+ # Remove .pyc files that may have been generated by sphinx
+ find mediagoblin -name '*.pyc' -exec rm {} \;
+
popd
tar -cvf $FNBASE.tar $FNBASE