]> bicyclesonthemoon.info Git - ott/post/commitdiff
started addpost
authorb <rowerynaksiezycu@gmail.com>
Sat, 24 Feb 2024 22:39:30 +0000 (22:39 +0000)
committerb <rowerynaksiezycu@gmail.com>
Sat, 24 Feb 2024 22:39:30 +0000 (22:39 +0000)
addpost.1.pl [new file with mode: 0644]
exec
makefile
makefile.1.mak
settings.txt

diff --git a/addpost.1.pl b/addpost.1.pl
new file mode 100644 (file)
index 0000000..019462b
--- /dev/null
@@ -0,0 +1,38 @@
+###RUN_PERL:
+
+# Copyright (C) 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
+# 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 <http://www.gnu.org/licenses/>.
+
+use strict;
+use utf8;
+use Getopt::Long;
+use Encode::Locale ('decode_argv');
+use Encode ('encode', 'decode');
+
+###PERL_LIB: use lib '/botm/lib/post';
+use botm_common (
+       # 'read_data_file', 'write_data_file',
+       # 'read_header_file',
+       # 'merge_url',
+       # 'html_entity_decode', 'url_query_encode',
+       # 'make_temp_path'
+);
+use post_common (
+       # 'prepare_post',
+       # 'wget',
+       # 'CODE'
+);
+
+# TODO contione
\ No newline at end of file
diff --git a/exec b/exec
index 92cf35c0340afcadb39f06248de26e114ad5603c..4cc21a9192d4f85d7dcee52333e5810d8aadc109 160000 (submodule)
--- a/exec
+++ b/exec
@@ -1 +1 @@
-Subproject commit 92cf35c0340afcadb39f06248de26e114ad5603c
+Subproject commit 4cc21a9192d4f85d7dcee52333e5810d8aadc109
index 2987f3c7f67426a4dfcc72ef9b29fe863ea84149..27c240f3fb3bbaa3c9f2896da16aa53d42c66f49 100644 (file)
--- a/makefile
+++ b/makefile
@@ -32,10 +32,13 @@ MKDIR=/usr/bin/mkdir
 RM   =/usr/bin/rm
 PERL =/usr/bin/perl
 
-BIN_PATH  = /botm/bin/test-post
-DATA_PATH = /botm/data/test-post
-LIB_PATH  = /botm/lib/test-post
-TMP_PATH  = /botm/tmp/test-post
+BIN_PATH       = /botm/bin/test-post
+DATA_PATH      = /botm/data/test-post
+DATA_FAIL_PATH = /botm/data/test-post/fail
+DATA_SENT_PATH = /botm/data/test-post/sent
+DATA_WAIT_PATH = /botm/data/test-post/wait
+LIB_PATH       = /botm/lib/test-post
+TMP_PATH       = /botm/tmp/test-post
 
 
 CONFIGFILE = settings-$(TARGET).txt settings.txt
@@ -46,11 +49,13 @@ CONFIGURE_CMD = $(PERL) ./configure.pl --do $(CONFIGFILE)
 
 # keep these 2 lists in the same order!:
 GENERATE_FROM=\
+addpost.1.pl\
 sendpost.1.pl\
 preview.1.pl\
 post_common.1.pm
 
 TO_GENERATE=\
+addpost.pl\
 sendpost.pl\
 preview.pl\
 post_common.pm
@@ -58,20 +63,29 @@ post_common.pm
 DIR=\
 $(BIN_PATH)\
 $(DATA_PATH)\
+$(DATA_FAIL_PATH)\
+$(DATA_SENT_PATH)\
+$(DATA_WAIT_PATH)\
 $(LIB_PATH)\
 $(TMP_PATH)
 
 HIDDEN_DIR=\
+$(DATA_FAIL_PATH)\
+$(DATA_SENT_PATH)\
+$(DATA_WAIT_PATH)\
 $(TMP_PATH)
 
 SETUID=\
-sendpost.pl
+addpost\
+sendpost
 
 EXEC=\
+addpost.pl\
 sendpost.pl\
 preview.pl
 
 PERL_WRAP_EXEC=\
+addpost\
 sendpost\
 preview
 
index 2c6ac43d8c4d739a7fb781c586c733c36bac5615..06819d869fb7f0332f679d9a92b6172f6728c3fe 100644 (file)
@@ -32,10 +32,13 @@ PERL = perl
 ###MAKE_RM:    RM    = rm\r
 ###MAKE_PERL:  PERL  = perl\r
 \r
-###MAKE_BIN_PATH:  BIN_PATH  = /botm/bin/post\r
-###MAKE_DATA_PATH: DATA_PATH = /botm/data/post\r
-###MAKE_LIB_PATH:  LIB_PATH  = /botm/lib/post\r
-###MAKE_TMP_PATH:  TMP_PATH  = /botm/tmp/post\r
+###MAKE_BIN_PATH:       BIN_PATH       = /botm/bin/post\r
+###MAKE_DATA_PATH:      DATA_PATH      = /botm/data/post\r
+###MAKE_DATA_FAIL_PATH: DATA_FAIL_PATH = /botm/data/post/fail\r
+###MAKE_DATA_SENT_PATH: DATA_SENT_PATH = /botm/data/post/sent\r
+###MAKE_DATA_WAIT_PATH: DATA_WAIT_PATH = /botm/data/post/wait\r
+###MAKE_LIB_PATH:       LIB_PATH       = /botm/lib/post\r
+###MAKE_TMP_PATH:       TMP_PATH       = /botm/tmp/post\r
 \r
 \r
 CONFIGFILE = settings-$(TARGET).txt settings.txt\r
@@ -46,11 +49,13 @@ CONFIGURE_CMD = $(PERL) ./configure.pl --do $(CONFIGFILE)
 \r
 # keep these 2 lists in the same order!:\r
 GENERATE_FROM=\\r
+addpost.1.pl\\r
 sendpost.1.pl\\r
 preview.1.pl\\r
 post_common.1.pm\r
 \r
 TO_GENERATE=\\r
+addpost.pl\\r
 sendpost.pl\\r
 preview.pl\\r
 post_common.pm\r
@@ -58,20 +63,29 @@ post_common.pm
 DIR=\\r
 $(BIN_PATH)\\r
 $(DATA_PATH)\\r
+$(DATA_FAIL_PATH)\\r
+$(DATA_SENT_PATH)\\r
+$(DATA_WAIT_PATH)\\r
 $(LIB_PATH)\\r
 $(TMP_PATH)\r
 \r
 HIDDEN_DIR=\\r
+$(DATA_FAIL_PATH)\\r
+$(DATA_SENT_PATH)\\r
+$(DATA_WAIT_PATH)\\r
 $(TMP_PATH)\r
 \r
 SETUID=\\r
-sendpost.pl\r
+addpost\\r
+sendpost\r
 \r
 EXEC=\\r
+addpost.pl\\r
 sendpost.pl\\r
 preview.pl\r
 \r
 PERL_WRAP_EXEC=\\r
+addpost\\r
 sendpost\\r
 preview\r
 \r
index a11c31444d6ffdb6a2232eeeda9ae5766d0b3523..a980017f8c47e11b23c6610e6090d7871ef8efae 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.0.4
+_version: 1.0.5
 
 _PERL_STR: '@_ESCAPE($0,')'
 _SHEBANG: #!$0
@@ -25,6 +25,11 @@ _PERL_CONSTANT_STR: @_PERL_CONSTANT($0,@_PERL_STR($1))
 _PERL_OUR: our $0 = $1;
 _PERL_OUR_STR: @_PERL_OUR(\$$0,@_PERL_STR($1))
 
+_data_fail_path = @_PATH($data_path, fail)
+_data_sent_path = @_PATH($data_path, sent)
+_data_wait_path = @_PATH($data_path, wait)
+
+
 MAKE_TARGET    = TARGET    = $target
 
 MAKE_CHMOD  = CHMOD=$chmod
@@ -36,10 +41,13 @@ MAKE_RM     = RM   =$rm
 MAKE_CC    = CC   =$CC
 MAKE_CF    = CF   =$CF
 
-MAKE_BIN_PATH  = BIN_PATH  = $bin_path
-MAKE_DATA_PATH = DATA_PATH = $data_path
-MAKE_LIB_PATH  = LIB_PATH  = $lib_path
-MAKE_TMP_PATH  = TMP_PATH  = $tmp_path
+MAKE_BIN_PATH       = BIN_PATH       = $bin_path
+MAKE_DATA_PATH      = DATA_PATH      = $data_path
+MAKE_DATA_FAIL_PATH = DATA_FAIL_PATH = $_data_fail_path
+MAKE_DATA_SENT_PATH = DATA_SENT_PATH = $_data_sent_path
+MAKE_DATA_WAIT_PATH = DATA_WAIT_PATH = $_data_wait_path
+MAKE_LIB_PATH       = LIB_PATH       = $lib_path
+MAKE_TMP_PATH       = TMP_PATH       = $tmp_path
 
 
 PERL_EXPORT_VERSION    = @_PERL_OUR_STR( VERSION, $_version)