Skip to content
Browse files

Added tgz source deployment.

  • Loading branch information...
1 parent b3dde0d commit 464200cb4c12b5ccb2a4d36ce3c0505bcaf98b72 @mickael-menu mickael-menu committed May 19, 2012
Showing with 72 additions and 2 deletions.
  1. +19 −2 Makefile
  2. +53 −0 deployment/tgz/README
View
21 Makefile
@@ -23,6 +23,7 @@ all:
@echo " install: Run the Python installation script"
@echo " clean: Remove temporary build files"
@echo " resources: (dev) Build the PyQt resources module (dep. pyrcc4)"
+ @echo " tgz: (dev) Build a gzipped source archive with tar"
@echo " app: (dev) Build a Mac OS X APP bundle (dep. pyinstaller)"
@echo " deb: (dev) Build an Ubuntu DEB package (dep. dh_make, debuild)"
@@ -47,6 +48,18 @@ tikz_editor/resources/__init__.py: tikz_editor/resources/resources.qrc
# Deployment commands #
#######################
+# Build a gzipped source archive with tar
+tgz: clean_tgz
+ mkdir -p "tikz-editor_$(APP_VERSION)"
+ cp -r tikz_editor tikz_editor.pyw \
+ setup.py distribute_setup.py \
+ LICENSE \
+ "tikz-editor_$(APP_VERSION)/"
+ cp $(DEPLOY_DIR)/tgz/README "tikz-editor_$(APP_VERSION)/"
+ tar -zcvf "tikz-editor_$(APP_VERSION).tgz" "tikz-editor_$(APP_VERSION)"
+ rm -rf "tikz-editor_$(APP_VERSION)"
+
+
# Build an Ubuntu DEB package
deb: clean_deb
DEBFULLNAME="$(shell python tikz_editor/globals MAINTAINER)" \
@@ -91,7 +104,9 @@ clean_setup:
rm -rf *.egg-info
rm -rf build
rm -rf dist
- find . -type f -name "*.pyc" -exec rm {} \;
+
+clean_tgz:
+ rm -rf tikz-editor_$(APP_VERSION)*
clean_deb:
rm -rf debian
@@ -104,4 +119,6 @@ clean_app:
rm -f *.log
rm -f *.spec
-clean: clean_setup clean_deb clean_app
+clean: clean_setup clean_tgz clean_deb clean_app
+ find . -type f -name "*.pyc" -exec rm {} \;
+ find . -name ".DS_Store" -exec rm -rf {} \;
View
53 deployment/tgz/README
@@ -0,0 +1,53 @@
+TIKZ EDITOR 1.0
+===============
+
+ Thank you for downloading TikZ Editor sources.
+
+ It is strongly recommended to install TikZ Editor using your OS's package
+ system rather than using setup.py yourself. If you're using Mac OS X or Ubuntu
+ Linux, please download the suitable package at:
+
+ http://github.com/mickael-menu/TikZ-Editor
+
+
+DEPENDENCIES
+
+ If you don't have this option, please make sure you satisfy TikZ Editor's
+ dependencies:
+
+ - Python version 2.6+ -- http://www.python.org/
+ - PyQt version 4.3+ -- http://www.riverbankcomputing.co.uk/software/pyqt
+ - QScintilla 2.6+ -- http://www.riverbankcomputing.com/software/qscintilla
+ - ImageMagick -- http://www.imagemagick.org/
+
+ On Ubuntu Linux, you can install all these required packages using:
+
+ sudo apt-get install python-qt4 python-qscintilla2 imagemagick
+
+
+INSTALLATION
+
+ You can test TikZ Editor directly from the current directory using:
+
+ python tikz_editor.pyw
+
+ Once you want to install it properly on your system, run:
+
+ python setup.py install
+
+
+LICENSE
+
+ Copyright © 2012 Mickaël Menu
+
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 2 of the License, or (at your option) any later
+ version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ this program. If not, see <http://www.gnu.org/licenses/>.

0 comments on commit 464200c

Please sign in to comment.
Something went wrong with that request. Please try again.