Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added tgz source deployment.

  • Loading branch information...
commit 464200cb4c12b5ccb2a4d36ce3c0505bcaf98b72 1 parent b3dde0d
Mickaël Menu authored May 19, 2012
21  Makefile
@@ -23,6 +23,7 @@ all:
23 23
 	@echo " install:    Run the Python installation script"
24 24
 	@echo " clean:      Remove temporary build files"
25 25
 	@echo " resources:  (dev) Build the PyQt resources module (dep. pyrcc4)"
  26
+	@echo " tgz:        (dev) Build a gzipped source archive with tar"
26 27
 	@echo " app:        (dev) Build a Mac OS X APP bundle (dep. pyinstaller)"
27 28
 	@echo " deb:        (dev) Build an Ubuntu DEB package (dep. dh_make, debuild)"
28 29
 
@@ -47,6 +48,18 @@ tikz_editor/resources/__init__.py: tikz_editor/resources/resources.qrc
47 48
 # Deployment commands #
48 49
 #######################
49 50
 
  51
+# Build a gzipped source archive with tar
  52
+tgz: clean_tgz
  53
+	mkdir -p "tikz-editor_$(APP_VERSION)"
  54
+	cp -r tikz_editor tikz_editor.pyw \
  55
+		setup.py distribute_setup.py \
  56
+		LICENSE \
  57
+		"tikz-editor_$(APP_VERSION)/"
  58
+	cp $(DEPLOY_DIR)/tgz/README "tikz-editor_$(APP_VERSION)/"
  59
+	tar -zcvf "tikz-editor_$(APP_VERSION).tgz" "tikz-editor_$(APP_VERSION)"
  60
+	rm -rf "tikz-editor_$(APP_VERSION)"
  61
+
  62
+
50 63
 # Build an Ubuntu DEB package
51 64
 deb: clean_deb
52 65
 	DEBFULLNAME="$(shell python tikz_editor/globals MAINTAINER)" \
@@ -91,7 +104,9 @@ clean_setup:
91 104
 	rm -rf *.egg-info
92 105
 	rm -rf build
93 106
 	rm -rf dist
94  
-	find . -type f -name "*.pyc" -exec rm {} \;
  107
+
  108
+clean_tgz:
  109
+	rm -rf tikz-editor_$(APP_VERSION)*
95 110
 
96 111
 clean_deb:
97 112
 	rm -rf debian
@@ -104,4 +119,6 @@ clean_app:
104 119
 	rm -f *.log
105 120
 	rm -f *.spec
106 121
 
107  
-clean: clean_setup clean_deb clean_app
  122
+clean: clean_setup clean_tgz clean_deb clean_app
  123
+	find . -type f -name "*.pyc" -exec rm {} \;
  124
+	find . -name ".DS_Store" -exec rm -rf {} \;
53  deployment/tgz/README
... ...
@@ -0,0 +1,53 @@
  1
+TIKZ EDITOR 1.0
  2
+===============
  3
+
  4
+  Thank you for downloading TikZ Editor sources.
  5
+
  6
+  It is strongly recommended to install TikZ Editor using your OS's package
  7
+  system rather than using setup.py yourself. If you're using Mac OS X or Ubuntu
  8
+  Linux, please download the suitable package at:
  9
+
  10
+    http://github.com/mickael-menu/TikZ-Editor
  11
+
  12
+
  13
+DEPENDENCIES
  14
+
  15
+  If you don't have this option, please make sure you satisfy TikZ Editor's
  16
+  dependencies:
  17
+
  18
+   - Python version 2.6+ -- http://www.python.org/
  19
+   - PyQt version 4.3+ -- http://www.riverbankcomputing.co.uk/software/pyqt
  20
+   - QScintilla 2.6+ -- http://www.riverbankcomputing.com/software/qscintilla
  21
+   - ImageMagick -- http://www.imagemagick.org/
  22
+
  23
+  On Ubuntu Linux, you can install all these required packages using:
  24
+
  25
+    sudo apt-get install python-qt4 python-qscintilla2 imagemagick
  26
+
  27
+
  28
+INSTALLATION
  29
+
  30
+  You can test TikZ Editor directly from the current directory using:
  31
+
  32
+    python tikz_editor.pyw
  33
+
  34
+  Once you want to install it properly on your system, run:
  35
+
  36
+    python setup.py install
  37
+
  38
+
  39
+LICENSE
  40
+
  41
+  Copyright © 2012 Mickaël Menu
  42
+
  43
+  This program is free software; you can redistribute it and/or modify it under
  44
+  the terms of the GNU General Public License as published by the Free Software
  45
+  Foundation; either version 2 of the License, or (at your option) any later
  46
+  version.
  47
+
  48
+  This program is distributed in the hope that it will be useful, but WITHOUT
  49
+  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  50
+  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  51
+
  52
+  You should have received a copy of the GNU General Public License along with
  53
+  this program. If not, see <http://www.gnu.org/licenses/>.

0 notes on commit 464200c

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