-Subproject commit 8dbd1b461e07f2894c4fcacacd681ab7c34b6bcb
+Subproject commit 44fbe59bfd7652a0975e601591df4a4b218da40d
-Subproject commit 1c21433837c5bc34100f04bbfeb8ce403844e91d
+Subproject commit fc9affec336a16cde93b2675a836bdd01d1c2210
-Subproject commit e95a720dc218bda573b24d2ba52af79b4be48da9
+Subproject commit 92cf35c0340afcadb39f06248de26e114ad5603c
--- /dev/null
+#!/bin/sh
+make clean
+make -B TARGET=release makefile
+make install
+make clean
# "makefile" is automatically generated from "makefile.1.mak"
#
-# Copyright (C) 2023 Balthasar Szczepański
+# Copyright (C) 2023, 2024 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
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+DEFAULT_TARGET = debug
ifndef TARGET
TARGET = debug
# when want to change target run this first:
CONFIGFILE = settings-$(TARGET).txt settings.txt
+DEFAULT_CONFIGFILE = settings-$(DEFAULT_TARGET).txt settings.txt
# The configuration tool
-CONFIGURE_CMD = $(PERL) ./configure.pl $(CONFIGFILE)
+CONFIGURE_CMD = $(PERL) ./configure.pl --do $(CONFIGFILE)
# keep these 2 lists in the same order!:
GENERATE_FROM=\
all: $(BIN) setuid exec
makefile: makefile.1.mak $(CONFIGFILE) configure.pl
- $(CONFIGURE_CMD) < makefile.1.mak > makefile
+ $(CONFIGURE_CMD) --in makefile.1.mak --out makefile
configure.pl: $(CONFIGFILE) config/configure.1.pl
$(PERL) config/configure.1.pl target=direct settings-$(TARGET).txt config/settings.txt --in config/configure.1.pl --out configure.pl
exec: $(EXEC)
$(CHMOD) +x $(EXEC)
-wrap_exec:
-
setuid: $(SETUID)
$(CHMOD) u+s,g+s $(SETUID)
clean:
$(RM) -f configure.pl $(TO_GENERATE) $(PERL_WRAP_EXEC) $(PERL_WRAP_EXEC:=.c)
+ $(PERL) config/configure.1.pl --do $(DEFAULT_CONFIGFILE) --in makefile.1.mak --out makefile
-PHONY: all clean install cp_bin cp_lib
+PHONY: all clean install setuid exec mktree cp_bin cp_lib
# "makefile" is automatically generated from "makefile.1.mak"\r
# \r
-# Copyright (C) 2023 Balthasar Szczepański\r
+# Copyright (C) 2023, 2024 Balthasar Szczepański\r
# \r
# This program is free software: you can redistribute it and/or modify\r
# it under the terms of the GNU Affero General Public License as\r
# You should have received a copy of the GNU Affero General Public License\r
# along with this program. If not, see <http://www.gnu.org/licenses/>.\r
\r
+DEFAULT_TARGET = debug\r
ifndef TARGET\r
-TARGET = debug ###MAKE_TARGET:\r
+TARGET = $(DEFAULT_TARGET) ###MAKE_TARGET:\r
# when want to change target run this first:\r
# make -B TARGET=target_name makefile\r
endif\r
\r
\r
CONFIGFILE = settings-$(TARGET).txt settings.txt\r
+DEFAULT_CONFIGFILE = settings-$(DEFAULT_TARGET).txt settings.txt\r
\r
# The configuration tool\r
-CONFIGURE_CMD = $(PERL) ./configure.pl $(CONFIGFILE)\r
+CONFIGURE_CMD = $(PERL) ./configure.pl --do $(CONFIGFILE)\r
\r
# keep these 2 lists in the same order!:\r
GENERATE_FROM=\\r
all: $(BIN) setuid exec\r
\r
makefile: makefile.1.mak $(CONFIGFILE) configure.pl\r
- $(CONFIGURE_CMD) < makefile.1.mak > makefile\r
+ $(CONFIGURE_CMD) --in makefile.1.mak --out makefile\r
\r
configure.pl: $(CONFIGFILE) config/configure.1.pl\r
$(PERL) config/configure.1.pl target=direct settings-$(TARGET).txt config/settings.txt --in config/configure.1.pl --out configure.pl\r
\r
clean:\r
$(RM) -f configure.pl $(TO_GENERATE) $(PERL_WRAP_EXEC) $(PERL_WRAP_EXEC:=.c)\r
+ $(PERL) config/configure.1.pl --do $(DEFAULT_CONFIGFILE) --in makefile.1.mak --out makefile\r
\r
PHONY: all clean install setuid exec mktree cp_bin cp_lib\r
\r
target: debug
-bin_path: /botm/bin/test-post
-lib_path: /botm/lib/test-post
-tmp_path: /botm/tmp/test-post
+bin_path : /botm/bin/test-post
+lib_path : /botm/lib/test-post
+tmp_path : /botm/tmp/test-post
data_path: /botm/data/test-post
mirror_url: http://1190.botcastle1b/ott
-encoding_file: UTF-8
-encoding_ott: UTF-8
+encoding_file : UTF-8
+encoding_ott : UTF-8
encoding_mirror: UTF-8
-default_subject: Re: 1190: "Time"
+default_subject : Re: 1190: "Time"
default_username: _
default_password: _
wget_useragent: post tool (http://bicyclesonthemoon.info/git-projects/?p=ott/post)
-wget_retries: 3
-wget_timeout: 60
+wget_retries : 3
+wget_timeout : 60
-cp: /usr/bin/cp
+cp : /usr/bin/cp
chmod: /usr/bin/chmod
mkdir: /usr/bin/mkdir
-perl: /usr/bin/perl
-rm: /usr/bin/rm
-wget: /usr/bin/wget
+perl : /usr/bin/perl
+rm : /usr/bin/rm
+wget : /usr/bin/wget
CC: gcc
CF: -g -Wall
\ No newline at end of file
target: release
-bin_path: /botm/bin/post
-lib_path: /botm/lib/post
-tmp_path: /botm/tmp/post
+bin_path : /botm/bin/post
+lib_path : /botm/lib/post
+tmp_path : /botm/tmp/post
data_path: /botm/data/post
# TODO: wget doesn't accept my https :(
mirror_url: http://1190.bicyclesonthemoon.info/ott
-encoding_file: UTF-8
-encoding_ott: UTF-8
+encoding_file : UTF-8
+encoding_ott : UTF-8
encoding_mirror: UTF-8
-default_subject: Re: 1190: "Time"
+default_subject : Re: 1190: "Time"
default_username: default_username
default_password: _
wget_useragent: post tool (http://bicyclesonthemoon.info/git-projects/?p=ott/post)
-wget_retries: 3
-wget_timeout: 60
+wget_retries : 3
+wget_timeout : 60
-cp: /usr/bin/cp
+cp : /usr/bin/cp
chmod: /usr/bin/chmod
mkdir: /usr/bin/mkdir
-perl: /usr/bin/perl
-rm: /usr/bin/rm
-wget: /usr/bin/wget
+perl : /usr/bin/perl
+rm : /usr/bin/rm
+wget : /usr/bin/wget
CC: gcc
CF: -g -Wall
\ No newline at end of file
# settings.txt
-# 08.15.2023
#
-# Copyright (C) 2023 Balthasar Szczepański
+# Copyright (C) 2023, 2024 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
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-_version: 1.0.3
+_version: 1.0.4
_PERL_STR: '@_ESCAPE($0,')'
_SHEBANG: #!$0