Some fixes
[mediagoblin.git] / devtools / maketarball.sh
index 5f17e578b9e3effa432c7d23b1eb2cf3d91ff186..0544247563920fd88568d81672fde6f37ec46d56 100755 (executable)
@@ -1,7 +1,7 @@
-#!/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
@@ -154,15 +154,16 @@ then
         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