Skip to content

Commit

Permalink
Updated build scripts to remove -hh and build for 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Jun 24, 2011
1 parent 9efd0d5 commit 014b903
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 34 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
@@ -1,3 +1,9 @@
play-1.2.1 (play-1.2.1-1) maverick; urgency=low

* Rebased on 1.2.1

-- Stephane Epardaud <stephane@epardaud.fr> Fri, 24 Jun 2011 14:31:45 +0200

play-1.1rc2-120-gf92a4ae (play-1.1rc2-120-gf92a4ae-13) maverick; urgency=low

* Fixed bug in applucation.py where lines containing a '=' were not loaded
Expand Down
15 changes: 3 additions & 12 deletions debian/control
@@ -1,24 +1,15 @@
Source: play-1.1rc2-120-gf92a4ae
Source: play-1.2.1
Section: unknown
Priority: extra
Maintainer: Stephane Epardaud <stephane@lunatech.com>
Build-Depends: debhelper (>= 7), ant
Standards-Version: 3.8.3
Homepage: http://www.playframework.org

Package: play-1.1rc2-120-gf92a4ae
Provides: play-1.1
Package: play-1.2.1
Provides: play-1.2
Architecture: all
Depends: ${misc:Depends}, python (>= 2.5), java-runtime
Recommends: play-1.1-debian-module
Description: Play! Framework
This is the Play! Framework packaged for Debian

Package: play-1.1rc2-120-gf92a4ae-hh
Provides: play-1.1-hh
Architecture: all
Depends: ${misc:Depends}, python (>= 2.5), java-runtime
Recommends: play-1.1-debian-module
Description: Play! Framework
This is the Play! Framework packaged for Debian
Uses the old Hibernate version
24 changes: 2 additions & 22 deletions debian/rules
Expand Up @@ -10,13 +10,9 @@
VERSION=$(shell git describe --tags refs/heads/master | tr '[A-Z]' '[a-z]')

DEB_PATH=debian/play-$(VERSION)
DEB_PATH_HH=debian/play-$(VERSION)-hh
INSTALL_PATH=/usr/share/play/$(VERSION)
INSTALL_PATH_HH=/usr/share/play/$(VERSION)-hh
ETC_PATH=/etc/play/$(VERSION)
ETC_PATH_HH=/etc/play/$(VERSION)-hh
DOC_PATH=/usr/share/doc/play-$(VERSION)
DOC_PATH_HH=/usr/share/doc/play-$(VERSION)-hh

%:
dh $@
Expand All @@ -33,29 +29,13 @@ override_dh_auto_clean:
override_dh_auto_install:
# New hibernate
install -d $(DEB_PATH)$(INSTALL_PATH) $(DEB_PATH)$(INSTALL_PATH)/modules $(DEB_PATH)$(ETC_PATH) $(DEB_PATH)$(DOC_PATH)
cp -r framework play resources support $(DEB_PATH)$(INSTALL_PATH)
rsync -r --exclude framework/classes framework play resources support $(DEB_PATH)$(INSTALL_PATH)
for m in console crud docviewer grizzly secure testrunner; \
do cp -r modules/$$m $(DEB_PATH)$(INSTALL_PATH)/modules/ ;\
do rsync -r --exclude tmp modules/$$m $(DEB_PATH)$(INSTALL_PATH)/modules/ ;\
done
rm -f $(DEB_PATH)$(INSTALL_PATH)/framework/lib/ejb* $(DEB_PATH)$(INSTALL_PATH)/framework/lib/hibernate*
cp debian/lib-new-hh/*.jar $(DEB_PATH)$(INSTALL_PATH)/framework/lib/
ln -s /usr/share/play-modules/1.1/debian $(DEB_PATH)$(INSTALL_PATH)/modules/debian
cp -r documentation $(DEB_PATH)$(DOC_PATH)
ln -s $(DOC_PATH)/documentation $(DEB_PATH)$(INSTALL_PATH)
cp -r debian/id repositories $(DEB_PATH)$(ETC_PATH)
ln -s $(ETC_PATH)/repositories $(DEB_PATH)$(INSTALL_PATH)
ln -s $(ETC_PATH) $(DEB_PATH)$(INSTALL_PATH)/etc
# Old hibernate
install -d $(DEB_PATH_HH)$(INSTALL_PATH_HH) $(DEB_PATH_HH)$(INSTALL_PATH_HH)/modules $(DEB_PATH_HH)$(ETC_PATH_HH) $(DEB_PATH_HH)$(DOC_PATH_HH)
cp -r framework play resources support $(DEB_PATH_HH)$(INSTALL_PATH_HH)
for m in console crud docviewer grizzly secure testrunner; \
do cp -r modules/$$m $(DEB_PATH_HH)$(INSTALL_PATH_HH)/modules/ ;\
done
rm -f $(DEB_PATH_HH)$(INSTALL_PATH_HH)/framework/lib/ejb* $(DEB_PATH_HH)$(INSTALL_PATH_HH)/framework/lib/hibernate*
cp debian/lib-old-hh/*.jar $(DEB_PATH_HH)$(INSTALL_PATH_HH)/framework/lib/
ln -s /usr/share/play-modules/1.1/debian $(DEB_PATH_HH)$(INSTALL_PATH_HH)/modules/debian
cp -r documentation $(DEB_PATH_HH)$(DOC_PATH_HH)
ln -s $(DOC_PATH_HH)/documentation $(DEB_PATH_HH)$(INSTALL_PATH_HH)
cp -r debian/id repositories $(DEB_PATH_HH)$(ETC_PATH_HH)
ln -s $(ETC_PATH_HH)/repositories $(DEB_PATH_HH)$(INSTALL_PATH_HH)
ln -s $(ETC_PATH_HH) $(DEB_PATH_HH)$(INSTALL_PATH_HH)/etc

0 comments on commit 014b903

Please sign in to comment.