diff --git a/.gitignore b/.gitignore index dd41d6f74..e7cf1cc5a 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,7 @@ compile_commands.json #debian build system /debian + +/release_files +*.lha + diff --git a/Makefile.os4 b/Makefile.os4 index 3b3cfc1bc..ba235e8de 100644 --- a/Makefile.os4 +++ b/Makefile.os4 @@ -803,3 +803,18 @@ externals/tinyxml2/tinyxml2.o: externals/tinyxml2/tinyxml2.cpp externals/tinyxml tools/dmake.o: tools/dmake.cpp cli/filelister.h lib/config.h lib/pathmatch.h $(CXX) ${INCLUDE_FOR_LIB} $(CPPFLAGS) $(CPPFILESDIR) $(CXXFLAGS) $(UNDEF_STRICT_ANSI) -c -o tools/dmake.o tools/dmake.cpp + +release: cppcheck + mkdir -p release/cppcheck + cp -r release_files/* release/cppcheck/ + cp -r cfg release/cppcheck/ + cp -r addons release/cppcheck/ + cp -r platforms release/cppcheck/ + cp cppcheck release/cppcheck/cppcheck + strip release/cppcheck/cppcheck + cp COPYING release/cppcheck/ + cp AUTHORS release/cppcheck/ + cp README-Amiga.md release/cppcheck/ + lha -aeqr3 a cppcheck.lha release/ + rm -rf release + diff --git a/README-Amiga.md b/README-Amiga.md new file mode 100644 index 000000000..b33f84d7d --- /dev/null +++ b/README-Amiga.md @@ -0,0 +1,37 @@ +# cppcheck + +This is the port of cppcheck 2.8 to AmigaOS 4. + +Cppcheck is a static analysis tool for C/C++ code. It provides unique code +analysis to detect bugs and focuses on detecting undefined behaviour and +dangerous coding constructs. The goal is to have very few false positives. +Cppcheck is designed to be able to analyze your C/C++ code even if it has +non-standard syntax (common in embedded projects). + +### Installation + +Extract the archive wherever you want and start using it. You might want +to add its folder at your system PATH, so that it can be accessed by +anywhere. Make sure that all the files that are contained in this archive +are available where you have the executable. + +The simplest way to use it is by running it in a shell like + +```bash +cppcheck Work:program/src +``` + +Please, read the manual on different ways to use it. There are many +different options to make it work better and faster for you. + +### Support + +If you like what I am doing and my ports and you would like to support me, +and my future releases please visit https://ko-fi.com/walkero where you +can find all the latest updates by me and you can donate. + +### Changelog + +2.8r1 (2022-09-22) +* First public release + diff --git a/cli/main.cpp b/cli/main.cpp index 9132fe842..63f9d382d 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -82,7 +82,7 @@ static char exename[1024] = {0}; #if defined(__amigaos4__) static const char *stack __attribute__((used)) = "$STACK:102400"; -static const char *version __attribute__((used)) = "\0$VER: cppcheck 2.9 (28.07.2022)"; +static const char *version __attribute__((used)) = "\0$VER: cppcheck 2.8 (22.09.2022)"; #endif /** * Main function of cppcheck