[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

./packages/openofficeorg/2.4.1/experimental r1106: add get-orig-source target



------------------------------------------------------------
revno: 1106
committer: Rene Engelhard <rene@debian.org>
branch nick: debian
timestamp: Sat 2008-05-17 22:48:35 +0200
message:
  add get-orig-source target
modified:
  changelog
  rules
=== modified file 'changelog'
--- a/changelog	2008-05-15 14:49:30 +0000
+++ b/changelog	2008-05-17 20:48:35 +0000
@@ -2,12 +2,14 @@
 
   * ooo-build:
    - use ooo-build-2-4-1 branch
-   - update (r12554)
+   - update (r12577)
   * debian/control.in, debian/rules:
     - libsapdbc-java was removed, stop suggesting it and adding it to OOos
       CLASSPATH
+  * debian/rules:
+   - add get-orig-source target
 
- -- Rene Engelhard <rene@debian.org>  Thu, 15 May 2008 16:49:08 +0200
+ -- Rene Engelhard <rene@debian.org>  Fri, 16 May 2008 22:20:50 +0200
 
 openoffice.org (1:2.4.1~ooh680m14-1) experimental; urgency=low
 

=== modified file 'rules'
--- a/rules	2008-05-15 14:49:30 +0000
+++ b/rules	2008-05-17 20:48:35 +0000
@@ -21,7 +21,7 @@
 
 PKGSOURCE := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2;exit 0}')
 SOURCE_VERSION:=$(shell head -1 debian/changelog | cut -d\( -f2 | cut -d\) -f1)
-UPSTREAM_VERSION:=$(shell echo "$(SOURCE_VERSION)"| cut -d- -f1)
+UPSTREAM_VERSION:=$(shell echo "$(SOURCE_VERSION)"| cut -d":" -f2 | cut -d- -f1)
 BASE_VERSION:=$(UPSTREAM_VERSION)
 #HELP_L10N_VIRTUAL_VERSION:=$(shell echo $(UPSTREAM_VERSION) | cut -d: -f2 | tr [~] [\\-])
 HELP_L10N_VIRTUAL_VERSION:=2.4
@@ -2980,6 +2980,36 @@
 	svn co $(OOO_BUILD_SVN) ooo-build
 	cd ooo-build && NOCONFIGURE=1 ./autogen.sh
 
+# FIXME: works for milestones only...
+get-orig-source:
+	if test -n "$$TMP"; then TMPD=`mktemp -d -p $$TMP`; else \
+		TMPD=`mktemp -d`; fi && \
+	cd $$TMPD && mkdir -p openoffice.org-$(UPSTREAM_VERSION)/ooo-build/src && \
+	cd openoffice.org-$(UPSTREAM_VERSION)/ooo-build/src && \
+		wget http://download.go-oo.org/$(MWS)/$(TAG)-core.tar.bz2 && \
+		wget http://download.go-oo.org/$(MWS)/$(TAG)-binfilter.tar.bz2 && \
+		wget http://download.go-oo.org/$(MWS)/$(TAG)-lang.tar.bz2 && \
+		wget http://download.go-oo.org/$(MWS)/$(TAG)-system.tar.bz2 && \
+		wget http://download.go-oo.org/$(MWS)/$(TAG)-sdk_oo.tar.bz2 && \
+		tar xfvj $(TAG)-core.tar.bz2 && \
+			rm -rf $(TAG)/external/jars && \
+			rm -rf $(TAG)/xalan && \
+		rm $(TAG)/smoketestoo_native/statjars/README.jfreechart && \
+		rm $(TAG)/smoketestoo_native/statjars/*.jar && \
+		for i in `find $(TAG)/psprint_config/configuration/ppds ! -name "SGEN*" -name "*.PS"`; do \
+			rm $$i; \
+		done && \
+		tar cfvj $(TAG)-core.tar.bz2.dfsg $(TAG) && ln -sf $(TAG)-core.tar.bz2.dfsg $(TAG)-core.tar.bz2 && rm -rf $(TAG) && \
+		tar xfvj $(TAG)-system.tar.bz2 && \
+			for i in da_DK en_GB en_US nl_NL ru_RU; do \
+				rm $(TAG)/dictionaries/$$i/hyph_$${i}.dic; \
+		done && \
+		rm $(TAG)/bitstream_vera_fonts/download/liberation-fonts.zip && \
+		tar cfvj $(TAG)-system.tar.bz2.dfsg $(TAG) && ln -sf $(TAG)-system.tar.bz2.dfsg $(TAG)-system.tar.bz2 && rm -rf $(TAG) && \
+		cd $$TMPD && tar cfvz openoffice.org_$(UPSTREAM_VERSION).orig.tar.gz openoffice.org-$(UPSTREAM_VERSION) && \
+		rm -rf openoffice.org-$(UPSTREAM_VERSION) && \
+		mv  openoffice.org_$(UPSTREAM_VERSION).orig.tar.gz $(CURDIR)/..
+
 # Download the latest sources needed for ooo-build. Note that is
 # might download more than actually needed here....
 download: ooo-build/config.status


Reply to: