File: orig-tar.sh

package info (click to toggle)
libapache-poi-java 4.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 198,448 kB
  • sloc: java: 386,440; xml: 65,910; makefile: 227; sh: 215; jsp: 85; ruby: 78; python: 46; cpp: 17
file content (35 lines) | stat: -rwxr-xr-x 1,601 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh -e

VERSION=$2

DIR=apache-poi-$VERSION
TAR=../libapache-poi-java_$VERSION.orig.tar.xz
TAG=REL_`echo $VERSION | sed "s/\./_/g"`_FINAL

# Checkout the code from svn
svn export http://svn.apache.org/repos/asf/poi/tags/$TAG $DIR

# Fetch the OOXML schemas from the ECMA site.
# These files are available to all interested parties without
# restriction according to the ECMA bylaws:
# http://www.ecma-international.org/memento/Ecmabylaws.htm#art9.4
wget 'http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%204%20(PDF).zip'
unzip 'Office Open XML 1st edition Part 4 (PDF).zip' OfficeOpenXML-XMLSchema.zip
unzip OfficeOpenXML-XMLSchema.zip -d $DIR/ooxml-xsds
rm *.zip

wget 'http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%202%20(PDF).zip'
unzip 'Office Open XML 1st edition Part 2 (PDF).zip' OpenPackagingConventions-XMLSchema.zip
unzip OpenPackagingConventions-XMLSchema.zip -d $DIR/ooxml-xsds
rm *.zip

mkdir -p $DIR/ooxml-lib
wget -P $DIR/ooxml-lib http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd
wget -P $DIR/ooxml-lib http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcterms.xsd
wget -P $DIR/ooxml-lib http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcmitype.xsd
wget -P $DIR/ooxml-lib http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd
wget -P $DIR/ooxml-lib http://uri.etsi.org/01903/v1.3.2/XAdES.xsd
wget -P $DIR/ooxml-lib http://uri.etsi.org/01903/v1.4.1/XAdESv141.xsd

XZ_OPT=--best tar cJf $TAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR