Permalink
Browse files

add Makefile builds, inc debian

git-svn-id: https://pyjamas.svn.sourceforge.net/svnroot/pyjamas/trunk@1028 7a2bd370-bda8-463c-979e-2900ccfb811e
  • Loading branch information...
1 parent b3e9aa9 commit be0701278df587952c9148a6737c757443f2d315 lkcl committed Jul 30, 2009
Showing with 49 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +46 −0 Makefile
  3. +1 −1 debian/control
View
@@ -1,8 +1,10 @@
build
bin
+deb
pyjd/__init__.py
examples/showcase/build/
examples/showcase/src/demoInfo.py
output
*.pyc
+*.pyo
.*.sw?
View
@@ -0,0 +1,46 @@
+VERSION=0.6pre2
+DEBSUBVERSION=1
+
+help:
+ @echo
+ @echo choose one of the following:
+ @echo " make local-build"
+ @echo " make system-install"
+ @echo " make debian-build"
+ @echo
+
+# 'sandbox' build - can be used locally.
+# e.g. building examples with ../../bin/pyjsbuild
+local-build:
+ python bootstrap.py
+
+# must be done as root, duh.
+system-install:
+ python bootstrap.py /usr/share/pyjamas /usr
+ python run_bootstrap_first_then_setup.py install
+
+# stoopid stoopid debianism requires a diff file, otherwise
+# lintian complains. put everything here to make builds be
+# happy, by creating a .orig.tar.gz that _doesn't_ have
+# the debian/ directory in it, then manually copy it
+# over, to build it. much joy.
+debian-build:
+ mkdir -p deb/pyjamas-${VERSION}
+ tar -cvzf deb/pyjamas_$(VERSION).orig.tar.gz \
+ --exclude=debian \
+ --exclude=./deb \
+ --exclude=output \
+ --exclude=build \
+ --exclude=./bin \
+ --exclude=fckeditor \
+ --exclude=*.pyc \
+ --exclude=.git* \
+ --exclude=.*.sw? \
+ --exclude=deb \
+ .
+ tar -C deb/pyjamas-${VERSION} -xvzf deb/pyjamas_$(VERSION).orig.tar.gz
+ cp -aux debian deb/pyjamas-${VERSION}
+ cd deb/pyjamas-${VERSION} && dpkg-buildpackage -rfakeroot
+ cd deb && lintian pyjamas_${VERSION}-${DEBSUBVERSION}_all.deb
+ cd deb && lintian pyjamas_${VERSION}-${DEBSUBVERSION}.dsc
+
View
@@ -3,7 +3,7 @@ Section: python
Priority: extra
Maintainer: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Build-Depends: debhelper (>= 7), python-support (>= 0.5.3), python, sed (>= 4.1.5)
-Standards-Version: 3.8.0
+Standards-Version: 3.8.1
Homepage: http://pyjs.org
Package: pyjamas

0 comments on commit be07012

Please sign in to comment.