Skip to content

Commit be6e1e5

Browse files
committedJan 17, 2015
Adapt the example to the new format (with the fixed-name content dir).
1 parent f8a8c89 commit be6e1e5

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed
 

‎samples/hello-pkg/Makefile

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
all: hello-1.1.xar hello-1.2.xar
1+
all: hello-1.3.xar
22

3-
hello-1.1.xar: expath-pkg.xml hello/hello.xq hello/hello.xsl
4-
zip "$@" expath-pkg.xml hello/hello.xq hello/hello.xsl
5-
6-
hello-1.2.xar: expath-pkg.xml hello/hello.xq hello/hello.xsl
7-
mkdir work
8-
mkdir work/content
9-
cat expath-pkg.xml | sed s/1.1/1.2/ > work/expath-pkg.xml
10-
cp hello/hello.xq hello/hello.xsl work/content
11-
( cd work; zip ../hello-1.2.xar expath-pkg.xml content/hello.xq content/hello.xsl )
12-
rm -r work
3+
hello-1.3.xar: expath-pkg.xml content/hello.xq content/hello.xsl
4+
zip "$@" expath-pkg.xml content/hello.xq content/hello.xsl
135

146
.PHONY: all
File renamed without changes.
File renamed without changes.

‎samples/hello-pkg/expath-pkg.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<package xmlns="http://expath.org/ns/pkg"
22
name="http://www.example.org/lib/hello"
3-
version="1.1"
3+
version="1.3"
44
abbrev="hello"
55
spec="1.0">
66

0 commit comments

Comments
 (0)
Please sign in to comment.