[Ttssh2-commit] [7753] ActivePerl でも実行できるように修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 6月 10日 (月) 17:35:21 JST


Revision: 7753
          https://osdn.net/projects/ttssh2/scm/svn/commits/7753
Author:   maya
Date:     2019-06-10 17:35:21 +0900 (Mon, 10 Jun 2019)
Log Message:
-----------
ActivePerl でも実行できるように修正

- ワンライナーのスクリプト部分を囲むのをダブルクォーテーションに変更
- -C だと環境変数に依存して動作が変わるようなので、無効になるようにした
- tr/\x{feff}//d で置換されなかったので正規表現を変更

Modified Paths:
--------------
    trunk/doc/convtext.bat

-------------- next part --------------
Modified: trunk/doc/convtext.bat
===================================================================
--- trunk/doc/convtext.bat	2019-06-10 03:26:13 UTC (rev 7752)
+++ trunk/doc/convtext.bat	2019-06-10 08:35:21 UTC (rev 7753)
@@ -17,12 +17,12 @@
 %ZLIBCP% -i ..\libs\zlib\README         -o %REF_E%\zlib-LICENSE.txt      -l unix
 %ZLIBCP% -i ..\libs\zlib\README         -o %REF_J%\zlib-LICENSE.txt      -l unix
 
-perl -C -pe 'tr/\x{feff}//d' ja/html/reference/build_with_cmake.md | perl Markdown_1.0.1/Markdown.pl > ja/html/reference/build_with_cmake_utf8.html
+perl -C0 -pe "s/^\xef\xbb\xbf//" ja/html/reference/build_with_cmake.md | perl Markdown_1.0.1/Markdown.pl > ja/html/reference/build_with_cmake_utf8.html
 %TOSJIS% -i ja/html/reference/build_with_cmake_utf8.html -o ja/html/reference/build_with_cmake.html  -c utf8
-perl -C -pe 'tr/\x{feff}//d' en/html/reference/build_with_cmake.md | perl Markdown_1.0.1/Markdown.pl > en/html/reference/build_with_cmake_utf8.html
+perl -C0 -pe "s/^\xef\xbb\xbf//" en/html/reference/build_with_cmake.md | perl Markdown_1.0.1/Markdown.pl > en/html/reference/build_with_cmake_utf8.html
 %TOSJIS% -i en/html/reference/build_with_cmake_utf8.html -o en/html/reference/build_with_cmake.html  -c utf8
 
-perl -C -pe 'tr/\x{feff}//d' ja/html/reference/build_library_with_cmake.md | perl Markdown_1.0.1/Markdown.pl > ja/html/reference/build_library_with_cmake_utf8.html
+perl -C0 -pe "s/^\xef\xbb\xbf//" ja/html/reference/build_library_with_cmake.md | perl Markdown_1.0.1/Markdown.pl > ja/html/reference/build_library_with_cmake_utf8.html
 %TOSJIS% -i ja/html/reference/build_library_with_cmake_utf8.html -o ja/html/reference/build_library_with_cmake.html  -c utf8
-perl -C -pe 'tr/\x{feff}//d' en/html/reference/build_library_with_cmake.md | perl Markdown_1.0.1/Markdown.pl > en/html/reference/build_library_with_cmake_utf8.html
+perl -C0 -pe "s/^\xef\xbb\xbf//" en/html/reference/build_library_with_cmake.md | perl Markdown_1.0.1/Markdown.pl > en/html/reference/build_library_with_cmake_utf8.html
 %TOSJIS% -i en/html/reference/build_library_with_cmake_utf8.html -o en/html/reference/build_library_with_cmake.html  -c utf8


Ttssh2-commit メーリングリストの案内
Back to archive index