From e29be5e0a1dbfd56f37267adf892eed0cb53c515 Mon Sep 17 00:00:00 2001 From: George Sokianos Date: Sun, 31 Jul 2022 17:13:59 +0100 Subject: [PATCH] Added a release rule in Makefile.os4 and a new README about this OS4 release. --- .gitignore | 2 ++ Makefile.os4 | 37 ++++++++++++++++++++++++++++++++++++- README-OS4.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 README-OS4.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c3cfbb9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.lha + diff --git a/Makefile.os4 b/Makefile.os4 index f000867..6280bf2 100644 --- a/Makefile.os4 +++ b/Makefile.os4 @@ -65,7 +65,7 @@ CFLAGS := $(MCRT) $(INCPATH) -Wall -Wwrite-strings -Wno-unused-variable -Wno-unu .PHONY: all all-before all-after clean clean-custom realclean -all: all-before libpcre.a libpcre-posix.a pcretest pcregrep all-after +all: all-before libpcre.a libpcre-posix.a all-after all-before: # You can add rules here to execute before the project is built @@ -73,6 +73,8 @@ all-before: all-after: # You can add rules here to execute after the project is built +tests: pcretest pcregrep + clean: clean-custom @echo "Cleaning compiler objects..." @rm -f $(libpcre_OBJ) $(libpcre-posix_OBJ) $(pcretest_OBJ) $(pcregrep_OBJ) $(pcredemo_OBJ) @@ -223,6 +225,39 @@ runtests: libpcre.a libpcre-posix.a pcretest pcregrep sh RunTest sh RunGrepTest +release: + @echo "Create release folders..." + @mkdir -p release/local/newlib/lib release/local/clib2/lib release/local/Documentation/pcre release/local/common/include + + @echo "Building newlib based libraries..." + @make -f Makefile.os4 all + @cp libpcre.a release/local/newlib/lib/ + @cp libpcre-posix.a release/local/newlib/lib/ + + @echo "Clean build and libraries files..." + @make -f Makefile.os4 cleanall + + @echo "Building clib2 based libraries..." + @make -f Makefile.os4 all USE_CLIB2=yes + @cp libpcre.a release/local/clib2/lib/ + @cp libpcre-posix.a release/local/clib2/lib/ + @echo "Copy the necessary files..." + @cp pcre.h release/local/common/include/ + @cp pcreposix.h release/local/common/include/ + @cp COPYING release/local/Documentation/pcre/ + @cp LICENCE release/local/Documentation/pcre/ + @cp README release/local/Documentation/pcre/ + @cp README-OS4.md release/local/Documentation/pcre/ + + @echo "Clean build and libraries files..." + @make -f Makefile.os4 cleanall + + @echo "Creating the lha release file..." + @rm -f pcre.lha + @lha -aeqr3 a pcre.lha release/ + + @rm -rf release + ################################################################### diff --git a/README-OS4.md b/README-OS4.md new file mode 100644 index 0000000..f4a9d2e --- /dev/null +++ b/README-OS4.md @@ -0,0 +1,42 @@ +PCRE (Perl-compatible regular expression library) +--------------------------------------------------------------------------- + +This is a port of PCRE 8.45 by Philip Hazel for AmigaOS 4, as found at the +Sourceforge repository (https://sourceforge.net/projects/pcre/files/pcre/) + +More information about PCRE can be found at its official website +at https://www.pcre.org + +In the archive both newlib and clib2 libraries are included. It has been +tested with various applications, but in case you find issues please +contact me. + +This release can replace the old 6.4 from Henning Nielsen Lund, but it +might not work well with your application, because of the many changes +happened the last 10+ years. + +To install it into your AmigaOS 4 SDK installation, just extract all the +files in the SDK: path. + +Compile +-------------------------- +The source and the changes I did can be found at my personale repository +https://git.walkero.gr/walkero/pcre + +You can compile it using the Makefile.os4 file, and produce the libraries +yourself. + +* with newlib run: + ```bash + make -f Makefile.os4 all + ``` +* with clib2 run: + ```bash + make -f Makefile.os4 all USE_CLIB2=yes + ``` + +Changelog +-------------------------- +v8.45r1 - 2022-07-31 +* First release +