]> bicyclesonthemoon.info Git - ott/bsta/commitdiff
config is now external dependency, not submodule
authorb <rowerynaksiezycu@gmail.com>
Sat, 6 Jun 2026 17:04:52 +0000 (17:04 +0000)
committerb <rowerynaksiezycu@gmail.com>
Sat, 6 Jun 2026 17:04:52 +0000 (17:04 +0000)
.gitmodules
config [deleted submodule]
makefile
makefile.1.mak
settings-again.txt
settings-bsta.txt
settings-debug.txt
settings.txt

index 7c416db9864cd7e930b84e2e70530b5bd51fd40b..8299156e476d315720ce04774f03e27681f6947b 100644 (file)
@@ -1,6 +1,3 @@
-[submodule "config"]
-       path = config
-       url = ../../botm/config
 [submodule "exec"]
        path = exec
        url = ../../botm/exec
diff --git a/config b/config
deleted file mode 160000 (submodule)
index 352e86f..0000000
--- a/config
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 352e86fd3d4afab9adb6c340d236f501f3d91560
index 2388b5ef538b814c2e0428dab93624a380a3b3c5..c28994811d492c0ee053f72f3b166800452a5938 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,6 +1,6 @@
 # "makefile" is automatically generated from "makefile.1.mak"
 # 
-# Copyright (C) 2016, 2017, 2023, 2024  Balthasar Szczepański
+# Copyright (C) 2016, 2017, 2023, 2024, 2026  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
@@ -22,6 +22,7 @@ TARGET = debug
 # make -B TARGET=target_name makefile
 endif
 PERL = perl
+CONFIGURE = botm-config
 
 CC   =/usr/bin/gcc
 CF   =-g -Wall
@@ -33,6 +34,8 @@ PERL =/usr/bin/perl
 RM   =/usr/bin/rm
 SUDO =/usr/bin/sudo
 
+CONFIGURE = $(PERL) /botm/bin/config-1.3/configure.pl
+
 BIN_PATH        = /botm/bin/test-bsta
 DATA_PATH       = /botm/data/test-bsta
 DATA_WORDS_PATH = /botm/data/test-bsta/words
@@ -48,7 +51,7 @@ CONFIGFILE = settings-$(TARGET).txt settings.txt
 DEFAULT_CONFIGFILE = settings-$(DEFAULT_TARGET).txt settings.txt
 
 # The configuration tool
-CONFIGURE_CMD = $(PERL) ./configure.pl --do $(CONFIGFILE)
+CONFIGURE_CMD = $(CONFIGURE) --do $(CONFIGFILE)
 
 # keep these 2 lists in the same order!:
 GENERATE_FROM=\
@@ -152,17 +155,14 @@ timer.js
 all: $(BIN) setuid exec
        
 
-makefile: makefile.1.mak $(CONFIGFILE) configure.pl
+makefile: makefile.1.mak $(CONFIGFILE)
        $(CONFIGURE_CMD) --in makefile.1.mak --out makefile
 
-configure.pl: $(CONFIGFILE) config/configure.1.pl
-       $(PERL) config/configure.1.pl --do target=direct settings-$(TARGET).txt config/settings.txt --in config/configure.1.pl --out configure.pl
-
-$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE) configure.pl
+$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE)
        $(CONFIGURE_CMD) --v --in $(GENERATE_FROM) --out $(TO_GENERATE)
 
-$(PERL_WRAP_EXEC): %: exec/exec.c exec/settings.txt configure.pl
-       $(PERL) configure.pl --do path=$(BIN_PATH) target=$*.pl io_path=$(LOG_PATH) stderr=$*-stderr.log exec/settings.txt --in exec/exec.c --out $*.c
+$(PERL_WRAP_EXEC): %: exec/exec.c exec/settings.txt
+       $(CONFIGURE) --do path=$(BIN_PATH) target=$*.pl io_path=$(LOG_PATH) stderr=$*-stderr.log exec/settings.txt --in exec/exec.c --out $*.c
        $(CC) $(CF) -o $@ $*.c
 
 exec: $(EXEC)
@@ -203,8 +203,8 @@ install: all cp_bin cp_lib cp_www cp_conf cp_cron
        
 
 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
+       $(RM) -f $(TO_GENERATE) $(PERL_WRAP_EXEC) $(PERL_WRAP_EXEC:=.c)
+       $(CONFIGURE) --do $(DEFAULT_CONFIGFILE) --in makefile.1.mak --out makefile
 
 PHONY: all clean install setuid exec mktree cp_bin cp_lib cp_www cp_conf cp_cron
        
index 386856106f73f968f43c9a270200b6c3a5f5be22..8cb3534910b1d26f68516ac9a202577960f3a266 100644 (file)
@@ -1,6 +1,6 @@
 # "makefile" is automatically generated from "makefile.1.mak"
 # 
-# Copyright (C) 2016, 2017, 2023, 2024  Balthasar Szczepański
+# Copyright (C) 2016, 2017, 2023, 2024, 2026  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
@@ -22,6 +22,7 @@ TARGET = $(DEFAULT_TARGET) ###MAKE_TARGET:
 # make -B TARGET=target_name makefile
 endif
 PERL = perl
+CONFIGURE = botm-config
 
 ###MAKE_CC:    CC=gcc
 ###MAKE_CF:    CF=-g -Wall
@@ -33,6 +34,8 @@ PERL = perl
 ###MAKE_RM:    RM    = rm
 ###MAKE_SUDO:  SUDO  = sudo
 
+###MAKE_CONFIGURE: CONFIGURE = perl /botm/bin/config-1.3/configure.pl
+
 ###MAKE_BIN_PATH:        BIN_PATH        = /botm/bin/bsta
 ###MAKE_DATA_PATH:       DATA_PATH       = /botm/data/bsta
 ###MAKE_DATA_WORDS_PATH: DATA_WORDS_PATH = /botm/data/bsta/words
@@ -48,7 +51,7 @@ CONFIGFILE = settings-$(TARGET).txt settings.txt
 DEFAULT_CONFIGFILE = settings-$(DEFAULT_TARGET).txt settings.txt
 
 # The configuration tool
-CONFIGURE_CMD = $(PERL) ./configure.pl --do $(CONFIGFILE)
+CONFIGURE_CMD = $(CONFIGURE) --do $(CONFIGFILE)
 
 # keep these 2 lists in the same order!:
 GENERATE_FROM=\
@@ -152,17 +155,14 @@ timer.js
 all: $(BIN) setuid exec
        
 
-makefile: makefile.1.mak $(CONFIGFILE) configure.pl
+makefile: makefile.1.mak $(CONFIGFILE)
        $(CONFIGURE_CMD) --in makefile.1.mak --out makefile
 
-configure.pl: $(CONFIGFILE) config/configure.1.pl
-       $(PERL) config/configure.1.pl --do target=direct settings-$(TARGET).txt config/settings.txt --in config/configure.1.pl --out configure.pl
-
-$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE) configure.pl
+$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE)
        $(CONFIGURE_CMD) --v --in $(GENERATE_FROM) --out $(TO_GENERATE)
 
-$(PERL_WRAP_EXEC): %: exec/exec.c exec/settings.txt configure.pl
-       $(PERL) configure.pl --do path=$(BIN_PATH) target=$*.pl io_path=$(LOG_PATH) stderr=$*-stderr.log exec/settings.txt --in exec/exec.c --out $*.c
+$(PERL_WRAP_EXEC): %: exec/exec.c exec/settings.txt
+       $(CONFIGURE) --do path=$(BIN_PATH) target=$*.pl io_path=$(LOG_PATH) stderr=$*-stderr.log exec/settings.txt --in exec/exec.c --out $*.c
        $(CC) $(CF) -o $@ $*.c
 
 exec: $(EXEC)
@@ -203,8 +203,8 @@ install: all cp_bin cp_lib cp_www cp_conf cp_cron
        
 
 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
+       $(RM) -f $(TO_GENERATE) $(PERL_WRAP_EXEC) $(PERL_WRAP_EXEC:=.c)
+       $(CONFIGURE) --do $(DEFAULT_CONFIGFILE) --in makefile.1.mak --out makefile
 
 PHONY: all clean install setuid exec mktree cp_bin cp_lib cp_www cp_conf cp_cron
        
index 202859056ac6fd1a6f029c020d0a9d1c3b45a27e..0026ad7ca4e40a72755b17c994cf1fa95f6760e7 100644 (file)
@@ -54,7 +54,8 @@ perl : /usr/bin/perl
 rm   : /usr/bin/rm
 sudo : /usr/bin/sudo
 
-oldlogs: /botm/bin/oldlogs/oldlogs.pl
+oldlogs  : /botm/bin/oldlogs/oldlogs.pl
+configure: /botm/bin/config-1.3/configure.pl
 
 CC: /usr/bin/gcc
 CF: -g -Wall
index 7b40e3b1e366786c50f4c69446761198e9328eb1..e9d554ca12ecfc4697a5daf551fb69c226b3b95c 100644 (file)
@@ -54,7 +54,8 @@ perl : /usr/bin/perl
 rm   : /usr/bin/rm
 sudo : /usr/bin/sudo
 
-oldlogs: /botm/bin/oldlogs/oldlogs.pl
+oldlogs  : /botm/bin/oldlogs/oldlogs.pl
+configure: /botm/bin/config-1.3/configure.pl
 
 CC: /usr/bin/gcc
 CF: -g -Wall
index 3a0f3f93af6b68dd95e8ec15592481f0807e6d9a..5631c5f601d065ad5bdf4ba406fcbc301033b069 100644 (file)
@@ -54,7 +54,8 @@ perl : /usr/bin/perl
 rm   : /usr/bin/rm
 sudo : /usr/bin/sudo
 
-oldlogs: /botm/bin/oldlogs/oldlogs.pl
+oldlogs  : /botm/bin/oldlogs/oldlogs.pl
+configure: /botm/bin/config-1.3/configure.pl
 
 CC: /usr/bin/gcc
 CF: -g -Wall
index b0a44338361c5be4eddb31305c8ecdb4fe174ce7..16f56919dbab91737d944079d5734f81f7443abc 100644 (file)
@@ -15,7 +15,7 @@
 # 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.2.15
+_version: 1.3.0
 
 _SHEBANG: #!$0
 
@@ -148,6 +148,8 @@ MAKE_LOG_PATH        = LOG_PATH        = $log_path
 MAKE_TMP_PATH        = TMP_PATH        = $tmp_path
 MAKE_WWW_PATH        = WWW_PATH        = $www_path
 
+MAKE_CONFIGURE = CONFIGURE = \$(PERL) $configure
+
 
 PERL_LIB = @_PERL_USE_2(lib, @_PERL_STR($lib_path))