source: proiecte/HadoopJUnit/hadoop-0.20.1/src/fixFontsPath.sh @ 142

Last change on this file since 142 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 3.3 KB
Line 
1#!/bin/sh
2
3# Licensed to the Apache Software Foundation (ASF) under one or more
4# contributor license agreements.  See the NOTICE file distributed with
5# this work for additional information regarding copyright ownership.
6# The ASF licenses this file to You under the Apache License, Version 2.0
7# (the "License"); you may not use this file except in compliance with
8# the License.  You may obtain a copy of the License at
9#
10#     http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17
18
19# This file is used to fix the paths in CNDOCS_SRC/uming.conf, CNDOCS_SRC/src/documentation/sitemap.xmap
20
21CNDOCS_SRC=$1
22
23cat <<EOF > src/docs/cn/uming.conf
24<?xml version="1.0"?>
25<configuration>
26  <fonts>
27    <font metrics-file="$CNDOCS_SRC/uming.xml" kerning="yes" embed-file="$CNDOCS_SRC/uming.ttc">
28      <font-triplet name="AR PL UMing" style="normal" weight="normal"/>
29      <font-triplet name="AR PL UMing" style="italic" weight="normal"/>
30      <font-triplet name="AR PL UMing" style="normal" weight="bold"/>
31      <font-triplet name="AR PL UMing" style="italic" weight="bold"/>
32    </font>
33  </fonts>
34</configuration>
35EOF
36
37cat <<EOF > src/docs/cn/src/documentation/sitemap.xmap
38<?xml version="1.0"?>
39<!--
40  Licensed to the Apache Software Foundation (ASF) under one or more
41  contributor license agreements.  See the NOTICE file distributed with
42  this work for additional information regarding copyright ownership.
43  The ASF licenses this file to You under the Apache License, Version 2.0
44  (the "License"); you may not use this file except in compliance with
45  the License.  You may obtain a copy of the License at
46
47      http://www.apache.org/licenses/LICENSE-2.0
48
49  Unless required by applicable law or agreed to in writing, software
50  distributed under the License is distributed on an "AS IS" BASIS,
51  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
52  See the License for the specific language governing permissions and
53  limitations under the License.
54-->
55<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
56  <map:components>
57    <map:serializers default="fo2pdf">
58      <map:serializer name="fo2pdf"
59                src="org.apache.cocoon.serialization.FOPSerializer"
60                mime-type="application/pdf">
61        <user-config src="$CNDOCS_SRC/uming.conf"/>
62        </map:serializer>
63    </map:serializers>
64  </map:components>
65  <map:pipelines>
66    <map:pipeline>
67<!-- generate .pdf files from .fo -->
68      <map:match type="regexp" pattern="^(.*?)([^/]*).pdf$">
69        <map:select type="exists">
70          <map:when test="{lm:project.{1}{2}.pdf}">
71            <map:read src="{lm:project.{1}{2}.pdf}"/>
72          </map:when>
73          <map:when test="{lm:project.{1}{2}.fo}">
74            <map:generate src="{lm:project.{1}{2}.fo}"/>
75            <map:serialize type="fo2pdf"/>
76          </map:when>
77          <map:otherwise>
78            <map:generate src="cocoon://{1}{2}.fo"/>
79            <map:serialize type="fo2pdf"/>
80          </map:otherwise>
81        </map:select>
82      </map:match>
83    </map:pipeline>
84  </map:pipelines>
85</map:sitemap>
86EOF
Note: See TracBrowser for help on using the repository browser.