diff --git a/CMakeLists.txt b/CMakeLists.txt index ae2087c..d8492f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 2.8.12...4.1.1) if (POLICY CMP0048) cmake_policy(SET CMP0048 NEW) endif (POLICY CMP0048) -project(base16384 VERSION 2.3.1) +project(base16384 VERSION 2.3.2) add_definitions(-DBASE16384_VERSION="${PROJECT_VERSION}") -add_definitions(-DBASE16384_VERSION_DATE="April 7th 2024") +add_definitions(-DBASE16384_VERSION_DATE="Sep 4th 2025") message(STATUS "Testing endian...") include(TestBigEndian) diff --git a/README.md b/README.md index 373d364..c94babf 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,8 @@ Save more space and since the code 0x0000 is encoded to "一", finding zero spac sudo apt install base16384 ``` -### Install from Homebrew -> 从 Homebrew 安装 +### Install from Homebrew (MacOS, etc.) +> 从 Homebrew 安装 (如 MacOS 等系统) ```bash brew install base16384 ``` @@ -46,6 +46,18 @@ sudo apt-get update sudo apt-get install base16384 ``` +### Install from OpenWrt packages +> OpenWrt 下安装 packages +```bash +opkg install base16384 +``` + +### Install from Arch Linux AUR +> Arch Linux 上从 AUR 仓库安装 +``` +yay -S base16384 +``` + ### Build from source code > 编译 @@ -86,6 +98,18 @@ base16384 -[ed][t][n][cC] [inputfile] [outputfile] outputfile pass - to write to stdout ``` +You can also run functional tests by + +也可执行以下命令以测试功能 + +```bash +mkdir build +cd build +cmake -DBUILD=test .. +cmake --build . --config Release --target all -- +ctest +``` + ## Examples > 用例 1. Encode simple text @@ -96,7 +120,7 @@ base16384 -[ed][t][n][cC] [inputfile] [outputfile] 婌焳廔萷 ``` -3. Decode simple text +2. Decode simple text > 简单文本解码 ```bash diff --git a/base1432.c b/base1432.c index faef239..57a4b5c 100644 --- a/base1432.c +++ b/base1432.c @@ -1,6 +1,6 @@ /* base1432.c * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). - * Copyright (c) 2022-2024 Fumiama Minamoto. + * Copyright (c) 2022-2025 Fumiama Minamoto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/base1464.c b/base1464.c index d05d1c0..4587d02 100644 --- a/base1464.c +++ b/base1464.c @@ -1,6 +1,6 @@ /* base1464.c * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). - * Copyright (c) 2022-2024 Fumiama Minamoto. + * Copyright (c) 2022-2025 Fumiama Minamoto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/base16384.1 b/base16384.1 index 76faa2a..bcf5747 100644 --- a/base16384.1 +++ b/base16384.1 @@ -1,4 +1,4 @@ -.TH BASE16384 1 "7 April 2024" "GNU" "User Commands" +.TH BASE16384 1 "4 Sep 2025" "GNU" "User Commands" .SH NAME base16384 \- Encode binary files to printable utf16be .SH SYNOPSIS @@ -104,7 +104,7 @@ on github. .SH AUTHOR This manual page contributed by Fumiama Minamoto. .SH "COPYRIGHT" -Copyright \(co 2022-2024, Fumiama Minamoto +Copyright \(co 2022-2025, Fumiama Minamoto This file is part of .IR "base16384" . .LP diff --git a/base16384.c b/base16384.c index 5db0552..760507f 100644 --- a/base16384.c +++ b/base16384.c @@ -1,6 +1,6 @@ /* base16384.c * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). - * Copyright (c) 2022-2024 Fumiama Minamoto. + * Copyright (c) 2022-2025 Fumiama Minamoto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -46,7 +46,7 @@ static base16384_err_t print_usage() { #define BASE16384_VERSION_DATE "unknown date" #endif fputs( - "Copyright (c) 2022-2024 Fumiama Minamoto.\nBase16384 " + "Copyright (c) 2022-2025 Fumiama Minamoto.\nBase16384 " BASE16384_VERSION " (" BASE16384_VERSION_DATE diff --git a/base16384.h b/base16384.h index bc31063..47364c7 100644 --- a/base16384.h +++ b/base16384.h @@ -3,7 +3,7 @@ /* base16384.h * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). - * Copyright (c) 2022-2024 Fumiama Minamoto. + * Copyright (c) 2022-2025 Fumiama Minamoto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/binary.h b/binary.h index 011ea7e..899cd65 100644 --- a/binary.h +++ b/binary.h @@ -3,7 +3,7 @@ /* binary.h * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). - * Copyright (c) 2022-2024 Fumiama Minamoto. + * Copyright (c) 2022-2025 Fumiama Minamoto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/file.c b/file.c index 72c3714..2f433c4 100644 --- a/file.c +++ b/file.c @@ -1,6 +1,6 @@ /* file.c * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). - * Copyright (c) 2022-2024 Fumiama Minamoto. + * Copyright (c) 2022-2025 Fumiama Minamoto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index bb82a5e..cc54cf6 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 2.8.12...4.1.1) if (POLICY CMP0048) cmake_policy(SET CMP0048 NEW) endif (POLICY CMP0048) diff --git a/test/coder_test.c b/test/coder_test.c index de160ea..163be4e 100644 --- a/test/coder_test.c +++ b/test/coder_test.c @@ -1,6 +1,6 @@ /* test/coder_test.c * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). - * Copyright (c) 2022-2024 Fumiama Minamoto. + * Copyright (c) 2022-2025 Fumiama Minamoto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/file_test.c b/test/file_test.c index 2558118..e3d6760 100644 --- a/test/file_test.c +++ b/test/file_test.c @@ -1,6 +1,6 @@ /* test/file_test.c * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). - * Copyright (c) 2022-2024 Fumiama Minamoto. + * Copyright (c) 2022-2025 Fumiama Minamoto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/file_test.h b/test/file_test.h index 445163b..88323ec 100644 --- a/test/file_test.h +++ b/test/file_test.h @@ -3,7 +3,7 @@ /* test/file_test.h * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). - * Copyright (c) 2022-2024 Fumiama Minamoto. + * Copyright (c) 2022-2025 Fumiama Minamoto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/test/wrap_test.c b/test/wrap_test.c index 7c9f4e0..a78ff1c 100644 --- a/test/wrap_test.c +++ b/test/wrap_test.c @@ -1,6 +1,6 @@ /* test/wrap_test.c * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). - * Copyright (c) 2022-2024 Fumiama Minamoto. + * Copyright (c) 2022-2025 Fumiama Minamoto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/wrap.c b/wrap.c index 4d1334b..2a0f85e 100644 --- a/wrap.c +++ b/wrap.c @@ -1,6 +1,6 @@ /* wrap.c * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). - * Copyright (c) 2022-2024 Fumiama Minamoto. + * Copyright (c) 2022-2025 Fumiama Minamoto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by