Hi again,

:-)

A patch for placing man pages in their language directory.


Best regards,
Nilgün
Index: build.xml
===================================================================
--- build.xml	(revision 669846)
+++ build.xml	(working copy)
@@ -458,7 +458,7 @@
                 <dependset>
                     <srcfileset dir="[EMAIL PROTECTED]"
                            includes="[EMAIL PROTECTED]" />
-                    <targetfileset dir="../../man/"
+                    <targetfileset dir="../../man/@{lang}"
                            includes="[EMAIL PROTECTED]@{section}" />
                 </dependset>
 
@@ -466,17 +466,17 @@
                     <not>
                         <uptodate
                             srcfile="@{srcfile}"
-                         targetfile="../../man/[EMAIL PROTECTED]@{section}"
+                         targetfile="../../man/@{lang}/[EMAIL PROTECTED]@{section}"
                         />
                     </not>
                 <then>
                     <if>
                         <available
-                            file="../../man/[EMAIL PROTECTED]@{section}.tmp"
+                            file="../../man/@{lang}/[EMAIL PROTECTED]@{section}.tmp"
                         />
                     <then>
-                        <copy file="../../man/[EMAIL PROTECTED]@{section}.tmp"
-                            tofile="../../man/[EMAIL PROTECTED]@{section}.old"
+                        <copy file="../../man/@{lang}/[EMAIL PROTECTED]@{section}.tmp"
+                            tofile="../../man/@{lang}/[EMAIL PROTECTED]@{section}.old"
                             preservelastmodified="true" overwrite="true" />
 
                         <!-- sample line:                                         -->
@@ -484,7 +484,7 @@
                         <!-- we replace  ^^^^^^^^^^ the date with @@date@@        -->
                         <!--                                                      -->
                         <replaceregexp
-                             file="../../man/[EMAIL PROTECTED]@{section}.tmp"
+                             file="../../man/@{lang}/[EMAIL PROTECTED]@{section}.tmp"
                             match='^(\.TH\s+"[^"]*"\s+\d\s+)"[^"]+"'
                           replace='\1"@@date@@"'
                            byline="true"
@@ -492,7 +492,7 @@
                     </then></if>
 
                     <xslt in="@{srcfile}"
-                         out="../../man/[EMAIL PROTECTED]@{section}"
+                         out="../../man/@{lang}/[EMAIL PROTECTED]@{section}"
                        style="../style/_generated/[EMAIL PROTECTED]">
                         <xmlcatalog refid="w3c-catalog" />
                         <param name="section" expression="@{section}" />
@@ -502,21 +502,21 @@
                     <if>
                         <and>
                             <available
-                                file="../../man/[EMAIL PROTECTED]@{section}.old"
+                                file="../../man/@{lang}/[EMAIL PROTECTED]@{section}.old"
                             />
                             <filesmatch
-                                file1="../../man/[EMAIL PROTECTED]@{section}.tmp"
-                                file2="../../man/[EMAIL PROTECTED]@{section}"
+                                file1="../../man/@{lang}/[EMAIL PROTECTED]@{section}.tmp"
+                                file2="../../man/@{lang}/[EMAIL PROTECTED]@{section}"
                             />
                         </and>
                     <then>
-                        <copy file="../../man/[EMAIL PROTECTED]@{section}.old"
-                            tofile="../../man/[EMAIL PROTECTED]@{section}"
+                        <copy file="../../man/@{lang}/[EMAIL PROTECTED]@{section}.old"
+                            tofile="../../man/@{lang}/[EMAIL PROTECTED]@{section}"
                             preservelastmodified="false" overwrite="true" />
                     </then>
                     <else>
                         <replaceregexp
-                               file="../../man/[EMAIL PROTECTED]@{section}"
+                               file="../../man/@{lang}/[EMAIL PROTECTED]@{section}"
                               match="@@date@@"
                             replace="${nroff.date}"
                         />

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to