From 7d7ff19d86b592046be252726e6bb5bc23331483 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sun, 13 Jul 2025 19:53:19 +0800 Subject: [PATCH] Move to `tool` --- {rawstr4c => tool/rawstr4c}/.gitignore | 0 {rawstr4c => tool/rawstr4c}/README.md | 0 .../bin/rawstr4c.bat => tool/rawstr4c/bin/run.bat | 9 +++++---- .../bin/rawstr4c.ps1 => tool/rawstr4c/bin/run.ps1 | 10 ++++++---- rawstr4c/bin/rawstr4c.sh => tool/rawstr4c/bin/run.sh | 12 +++++++----- {rawstr4c => tool/rawstr4c}/lib/Generator.rakumod | 0 {rawstr4c => tool/rawstr4c}/lib/Parser.rakumod | 0 {rawstr4c => tool/rawstr4c}/rawstr4c.raku | 0 {rawstr4c => tool/rawstr4c}/test-escape.md | 0 {rawstr4c => tool/rawstr4c}/test-hex.md | 0 10 files changed, 18 insertions(+), 13 deletions(-) rename {rawstr4c => tool/rawstr4c}/.gitignore (100%) rename {rawstr4c => tool/rawstr4c}/README.md (100%) rename rawstr4c/bin/rawstr4c.bat => tool/rawstr4c/bin/run.bat (69%) rename rawstr4c/bin/rawstr4c.ps1 => tool/rawstr4c/bin/run.ps1 (68%) rename rawstr4c/bin/rawstr4c.sh => tool/rawstr4c/bin/run.sh (61%) rename {rawstr4c => tool/rawstr4c}/lib/Generator.rakumod (100%) rename {rawstr4c => tool/rawstr4c}/lib/Parser.rakumod (100%) rename {rawstr4c => tool/rawstr4c}/rawstr4c.raku (100%) rename {rawstr4c => tool/rawstr4c}/test-escape.md (100%) rename {rawstr4c => tool/rawstr4c}/test-hex.md (100%) diff --git a/rawstr4c/.gitignore b/tool/rawstr4c/.gitignore similarity index 100% rename from rawstr4c/.gitignore rename to tool/rawstr4c/.gitignore diff --git a/rawstr4c/README.md b/tool/rawstr4c/README.md similarity index 100% rename from rawstr4c/README.md rename to tool/rawstr4c/README.md diff --git a/rawstr4c/bin/rawstr4c.bat b/tool/rawstr4c/bin/run.bat similarity index 69% rename from rawstr4c/bin/rawstr4c.bat rename to tool/rawstr4c/bin/run.bat index f29705a..aab6853 100644 --- a/rawstr4c/bin/rawstr4c.bat +++ b/tool/rawstr4c/bin/run.bat @@ -1,5 +1,5 @@ :: --------------------------------------------------------------- -:: File Name : rawstr4c.bat +:: File Name : run.bat :: File Authors : Aoran Zeng :: Contributors : Nul None :: Created On : <2025-07-13> @@ -11,11 +11,12 @@ :: :: 用户必须在代码根目录中运行此文件 :: -:: .\rawstr4c\bin\rawstr4c.bat [--debug] +:: %PREFIX%\bin\run.bat [--debug] :: -:: .\rawstr4c\bin\rawstr4c.bat [--debug] +:: %PREFIX%\bin\run.bat [--debug] :: --------------------------------------------------------------- @echo off +set PREFIX=tool\rawstr4c REM -I 选项必须在文件前面 -raku -I .\rawstr4c\lib .\rawstr4c\rawstr4c.raku %* +raku -I %PREFIX%\lib %PREFIX%\rawstr4c.raku %* diff --git a/rawstr4c/bin/rawstr4c.ps1 b/tool/rawstr4c/bin/run.ps1 similarity index 68% rename from rawstr4c/bin/rawstr4c.ps1 rename to tool/rawstr4c/bin/run.ps1 index f16d146..7676c61 100644 --- a/rawstr4c/bin/rawstr4c.ps1 +++ b/tool/rawstr4c/bin/run.ps1 @@ -1,5 +1,5 @@ # --------------------------------------------------------------- -# File Name : rawstr4c.ps1 +# File Name : run.ps1 # File Authors : Aoran Zeng # Contributors : Nul None # Created On : <2025-07-12> @@ -11,10 +11,12 @@ # # 用户必须在代码根目录中运行此文件 # -# .\rawstr4c\bin\rawstr4c.ps1 [--debug] +# $PREFIX\bin\run.ps1 [--debug] # -# .\rawstr4c\bin\rawstr4c.ps1 [--debug] +# $PREFIX\bin\run.ps1 [--debug] # --------------------------------------------------------------- +$PREFIX = "tool/rawstr4c" + # -I 选项必须在文件前面 -raku -I .\rawstr4c\lib .\rawstr4c\rawstr4c.raku $args +raku -I $PREFIX\lib $PREFIX\rawstr4c.raku $args diff --git a/rawstr4c/bin/rawstr4c.sh b/tool/rawstr4c/bin/run.sh similarity index 61% rename from rawstr4c/bin/rawstr4c.sh rename to tool/rawstr4c/bin/run.sh index 9cb6271..b7e3400 100644 --- a/rawstr4c/bin/rawstr4c.sh +++ b/tool/rawstr4c/bin/run.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # --------------------------------------------------------------- -# File Name : rawstr4c.sh +# File Name : run.sh # File Authors : Aoran Zeng # Contributors : Nul None # Created On : <2025-07-13> @@ -10,12 +10,14 @@ # # Usage: # -# 用户必须在代码根目录中运行此文件 +# 用户必须在代码根目录中运行此文件! # -# ./rawstr4c/bin/rawstr4c.sh [--debug] +# $PREFIX/bin/run.sh [--debug] # -# ./rawstr4c/bin/rawstr4c.sh [--debug] +# $PREFIX/bin/run.sh [--debug] # --------------------------------------------------------------- +PREFIX="tool/rawstr4c" + # -I 选项必须在文件前面 -raku -I ./rawstr4c/lib ./rawstr4c/rawstr4c.raku "$@" +raku -I $PREFIX/lib $PREFIX/rawstr4c.raku "$@" diff --git a/rawstr4c/lib/Generator.rakumod b/tool/rawstr4c/lib/Generator.rakumod similarity index 100% rename from rawstr4c/lib/Generator.rakumod rename to tool/rawstr4c/lib/Generator.rakumod diff --git a/rawstr4c/lib/Parser.rakumod b/tool/rawstr4c/lib/Parser.rakumod similarity index 100% rename from rawstr4c/lib/Parser.rakumod rename to tool/rawstr4c/lib/Parser.rakumod diff --git a/rawstr4c/rawstr4c.raku b/tool/rawstr4c/rawstr4c.raku similarity index 100% rename from rawstr4c/rawstr4c.raku rename to tool/rawstr4c/rawstr4c.raku diff --git a/rawstr4c/test-escape.md b/tool/rawstr4c/test-escape.md similarity index 100% rename from rawstr4c/test-escape.md rename to tool/rawstr4c/test-escape.md diff --git a/rawstr4c/test-hex.md b/tool/rawstr4c/test-hex.md similarity index 100% rename from rawstr4c/test-hex.md rename to tool/rawstr4c/test-hex.md