Changes between Version 8 and Version 9 of OSGeo4W_jp/PackagingInstructions


Ignore:
Timestamp:
Feb 17, 2010, 9:54:12 PM (14 years ago)
Author:
hfujii
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OSGeo4W_jp/PackagingInstructions

    v8 v9  
    107107=== !TextReplace Example !#2 ===
    108108
     1092008年4月の時点で textreplace はファイルをアップデートするので、 infile/outfile シンタックスは必要でなくなります:
    109110{{{
    110   textreplace -sf bin/gdal-config.tmpl -df bin/gdal-config \
    111     -map @osgeo4w@ "%OSGEO4W_ROOT%"  \
    112     -map @osgeo4w_msys@ "%OSGEO4W_ROOT_MSYS%"
     111textreplace -std -t bin/o4w_env.bat
    113112}}}
    114 どちらの例も bin/textreplace プログラム (msvcrt パッケージの一部)を使用しています.  2つ目の例はソースファイル bin/gdal-config.tmpl と 目的ファイル bin/gdal-config と一緒に使用し、@osgeo4w@ の occurances を OSGEO4W_ROOT 環境変数の値で置き換え、 @osgeo4w_msys@ を OSGEO4W_ROOT_MSYS 環境変数の値で置き換えます。 .tmpl バージョンからファイルをプロセスするパターンは十分に共通しているため、テキスト置換は同じ動作に対してこの short form をサポートしています:
     113はスタンダードマッピングチェンジを適用します; これ:
    115114{{{
    116  textreplace -std -t bin/gdal-config
     115#!html
     116<blockquote><pre>@echo off
     117set OSGEO4W_ROOT=<b>@osgeo4w@</b>
     118PATH=%OSGEO4W_ROOT%\bin;%PATH%
     119for %%f in ("%OSGEO4W_ROOT%"\etc\ini\*.bat) do call "%%f"
     120@echo on</pre></blockquote>
    117121}}}
    118 これは、"standard" 変換をファイル bin/gdal-config.tmpl に適用し bin/gdal-config に結果を挿入します。
     122をこれに:
     123{{{
     124#!html
     125<blockquote><pre>@echo off
     126set OSGEO4W_ROOT=<b>X:\Path\to\OSGeo4W</b>
     127PATH=%OSGEO4W_ROOT%\bin;%PATH%
     128for %%f in ("%OSGEO4W_ROOT%"\etc\ini\*.bat) do call "%%f"
     129@echo on</pre></blockquote>
     130}}}
    119131
    120132== ショートカットの作成 ==