sheepy

build system (sheepy) and package manager (spm) for C
git clone https://spartatek.se/git/sheepy.git
Log | Files | Refs | README | LICENSE

commit ea0246a2f62314ffc97b69d98c308f15c0429d73
parent e63d1492336a3bba272292c8e8360155a5eb8031
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sat,  8 Jul 2023 21:28:22 +0200

remove warning when a package has lflags

LICENSE      |  2 +-
src/common.c |  2 +-
src/common.h |  2 +-
src/sheepy.c | 13 +++++++++----
src/sheepy.h |  2 +-
src/spm.c    |  2 +-
6 files changed, 14 insertions(+), 9 deletions(-)

Diffstat:
MLICENSE | 2+-
Msrc/common.c | 2+-
Msrc/common.h | 2+-
Msrc/sheepy.c | 13+++++++++----
Msrc/sheepy.h | 2+-
Msrc/spm.c | 2+-
6 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Remy Noulin +Copyright (c) 2023 Remy Noulin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/common.c b/src/common.c @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2022 Remy Noulin +// Copyright (c) 2023 Remy Noulin // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/src/common.h b/src/common.h @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2022 Remy Noulin +// Copyright (c) 2023 Remy Noulin // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/src/sheepy.c b/src/sheepy.c @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2022 Remy Noulin +// Copyright (c) 2023 Remy Noulin // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -298,8 +298,8 @@ int MAIN(int ARGC, char** ARGV) { putsG(BLD CYN" -l (PROGNAME.c)"RST" Compile static and dynamic libraries for argument or bin from package"); { putsG(BLD CYN" -d (PROGNAME.c)"RST" Delete intermediary files for argument or bin from package"); { putsG(BLD CYN" -t (PROGNAME.c)"RST" Compile executable in argument or testBin from package using the test compiler and test linker flags"); - putsG(BLD CYN" -m (PROGNAME.c)"RST" Compile executable in argument or memcheckBin from package using the memcheck compiler and linker flags"); - putsG(BLD CYN" -a (PROGNAME.c)"RST" Compile executable in argument or asanBin from package using the asan compiler and linker flags"); + putsG(BLD CYN" -m (PROGNAME.c)"RST" Compile executable in argument or memcheckBin from package using the memcheck compiler and linker flags and disabling container recycling in libsheepy"); + putsG(BLD CYN" -a (PROGNAME.c)"RST" Compile executable in argument or asanBin from package using the asan compiler and linker flags and disabling container recycling in libsheepy"); putsG(BLD CYN" -n PROGNAME(.c)"RST" New source program from template"); putsG(BLD CYN" -r"RST" Remove all temporary build files in ~/.sheepy/build"); putsG(BLD CYN" -C CLASSNAME"RST" Generate C templates for classname (classnames start with lowercase letters, the first char in classname is lowered)"); { @@ -1970,9 +1970,14 @@ int MAIN(int ARGC, char** ARGV) { createAllocateSmallJson(pkgJ); if (readFileG(pkgJ, pkg)) { if (!isBlankG(getG(pkgJ, rtChar, "lflags"))) { - pErrorNULL(iAppendManyS(&packageLflags, " ", getG(pkgJ, rtChar, "lflags"))); + if (!packageLflags) { + packageLflags = getNDupG(pkgJ, rtChar, "lflags"); + } + else { + pErrorNULL(iAppendManyS(&packageLflags, " ", getG(pkgJ, rtChar, "lflags"))); } } + } free(pkg); terminateG(pkgJ); } diff --git a/src/sheepy.h b/src/sheepy.h @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2022 Remy Noulin +// Copyright (c) 2023 Remy Noulin // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/src/spm.c b/src/spm.c @@ -1,7 +1,7 @@ #! /usr/bin/env sheepy // MIT License // -// Copyright (c) 2022 Remy Noulin +// Copyright (c) 2023 Remy Noulin // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal