From: b Date: Sat, 17 Jun 2023 20:35:46 +0000 (+0000) Subject: add setting for configuration tool X-Git-Url: http://bicyclesonthemoon.info/git-projects/?a=commitdiff_plain;h=e95a720dc218bda573b24d2ba52af79b4be48da9;p=botm%2Fexec add setting for configuration tool --- diff --git a/exec.c b/exec.c index 93889e7..d8873a5 100644 --- a/exec.c +++ b/exec.c @@ -17,7 +17,7 @@ along with this program. If not, see . #include #include -#define TARGET "/path/to/exec" /* replace with actual target */ +#define TARGET "/path/to/exec" /* replace with actual target ###EXEC_TARGET:*/ int main(int argc, char *argv[], char *envp[]) { diff --git a/settings.txt b/settings.txt new file mode 100644 index 0000000..81baa77 --- /dev/null +++ b/settings.txt @@ -0,0 +1,19 @@ +# Copyright (C) 2023 Balthasar Szczepański +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +_C_DEFINE_STR: #define $0 "@_ESCAPE($1)" + +_TARGET = @_PATH($path, $target) +EXEC_TARGET = @_C_DEFINE_STR(TARGET, $_TARGET)