PERL = /usr/bin/perl
RM = /usr/bin/rm
-BIN_PATH = /botm/bin/test-ottbackup/mscha
-LIB_PATH = /botm/lib/test-ottbackup/mscha
-WWW_PATH = /botm/www/1190/mschatest
+BIN_PATH = /botm/bin/test-ottbackup/mscha/
+LIB_PATH = /botm/lib/test-ottbackup/mscha/
+WWW_PATH = /botm/www/1190/mschatest/
CONF = /botm/etc/www/conf/1190/test-mscha.conf
# The configuration tool
CONFIGURE_CMD = $(PERL) ./configure.pl --do $(CONFIGFILE)
+# keep these 2 lists in the same order!:
+GENERATE_FROM=\
+mscha.1.conf
+
+TO_GENERATE=\
+mscha.conf
+
EXEC=\
frame.pl\
frameaftertime.pl\
$(WWW_PATH)
-all: exec
+all: exec $(TO_GENERATE)
install: cp_bin cp_lib cp_conf cp_www
$(PERL) config/configure.1.pl target=direct settings-$(TARGET).txt config/settings.txt --in config/configure.1.pl --out configure.pl
+$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE) configure.pl
+ $(CONFIGURE_CMD) --in $(GENERATE_FROM) --out $(TO_GENERATE)
+
+
mktree:
$(MKDIR) -p $(DIR)
# $(CHMOD) g-r,g-w,g-x,o-r,o-w,o-x $(HIDDEN_DIR)
clean:
- $(RM) -f configure.pl
+ $(RM) -f configure.pl $(TO_GENERATE)
$(PERL) config/configure.1.pl --do $(DEFAULT_CONFIGFILE) --in makefile.1.mak --out makefile
PHONY: all clean cp_bin cp_conf cp_lib cp_www cp_www_data exec install install_all mktree
# The configuration tool
CONFIGURE_CMD = $(PERL) ./configure.pl --do $(CONFIGFILE)
+# keep these 2 lists in the same order!:
+GENERATE_FROM=\
+mscha.1.conf
+
+TO_GENERATE=\
+mscha.conf
+
EXEC=\
frame.pl\
frameaftertime.pl\
$(WWW_PATH)
-all: exec
+all: exec $(TO_GENERATE)
install: cp_bin cp_lib cp_conf cp_www
$(PERL) config/configure.1.pl target=direct settings-$(TARGET).txt config/settings.txt --in config/configure.1.pl --out configure.pl
+$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE) configure.pl
+ $(CONFIGURE_CMD) --in $(GENERATE_FROM) --out $(TO_GENERATE)
+
+
mktree:
$(MKDIR) -p $(DIR)
# $(CHMOD) g-r,g-w,g-x,o-r,o-w,o-x $(HIDDEN_DIR)
clean:
- $(RM) -f configure.pl
+ $(RM) -f configure.pl $(TO_GENERATE)
$(PERL) config/configure.1.pl --do $(DEFAULT_CONFIGFILE) --in makefile.1.mak --out makefile
PHONY: all clean cp_bin cp_conf cp_lib cp_www cp_www_data exec install install_all mktree
--- /dev/null
+# mscha.conf is automatically generated from mscha.1.conf
+
+ScriptAlias ###CONF_CGI_VIEW; ###CONF_BIN_VIEW;
+ScriptAlias ###CONF_CGI_TAT_VIEW; ###CONF_BIN_TAT_VIEW;
+ScriptAlias ###CONF_CGI_VIEW_2; ###CONF_BIN_VIEW;
+ScriptAlias ###CONF_CGI_TAT_VIEW_2; ###CONF_BIN_TAT_VIEW;
+ScriptAlias ###CONF_CGI_FRAME; ###CONF_BIN_FRAME;
+ScriptAlias ###CONF_CGI_TAT_FRAME; ###CONF_BIN_TAT_FRAME;
+
+<Directory ###CONF_BIN;>
+ Require all granted
+</Directory>
\ No newline at end of file
+++ /dev/null
-# #mscha
-#
-# ScriptAlias /mscha/viewer /eizm/bin/ottbackup/mscha/viewer.pl
-# ScriptAlias /mscha/vieweraftertime /eizm/bin/ottbackup/mscha/vieweraftertime.pl
-# ScriptAlias /mscha/view.fcgi /eizm/bin/ottbackup/mscha/viewer.pl
-# ScriptAlias /mscha/viewaftertime.fcgi /eizm/bin/ottbackup/mscha/vieweraftertime.pl
-# ScriptAlias /mscha/frame /eizm/bin/ottbackup/mscha/frame.pl
-# ScriptAlias /mscha/frameaftertime /eizm/bin/ottbackup/mscha/frameaftertime.pl
name: test-mscha
bin_path : /botm/bin/test-ottbackup/mscha
+cgi_path : /mschatest
conf_path: /botm/etc/www/conf/1190
lib_path : /botm/lib/test-ottbackup/mscha
www_path : /botm/www/1190/mschatest
# 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/>.
+_bin_path = @_PATH($bin_path, )
+_bin_frame_path = @_PATH($bin_path, frame.pl )
+_bin_tat_frame_path = @_PATH($bin_path, frameaftertime.pl )
+_bin_tat_view_path = @_PATH($bin_path, vieweraftertime.pl)
+_bin_view_path = @_PATH($bin_path, viewer.pl )
+
+_cgi_path = @_PATH($cgi_path, )
+_cgi_frame_path = @_PATH($cgi_path, frame )
+_cgi_tat_frame_path = @_PATH($cgi_path, frameaftertime )
+_cgi_tat_view_path = @_PATH($cgi_path, vieweraftertime )
+_cgi_tat_view_2_path = @_PATH($cgi_path, viewaftertime.fcgi)
+_cgi_view_path = @_PATH($cgi_path, viewer )
+_cgi_view_2_path = @_PATH($cgi_path, view.fcgi )
+
_conf_path = @_PATH($conf_path, $name\.conf)
+_lib_path = @_PATH($lib_path,)
+_www_path = @_PATH($www_path,)
+
+
+CONF_BIN = $_bin_path
+CONF_BIN_FRAME = $_bin_frame_path
+CONF_BIN_TAT_FRAME = $_bin_tat_frame_path
+CONF_BIN_TAT_VIEW = $_bin_tat_view_path
+CONF_BIN_VIEW = $_bin_view_path
+
+CONF_CGI_FRAME = $_cgi_tat_view_path
+CONF_CGI_TAT_FRAME = $_cgi_tat_view_path
+CONF_CGI_TAT_VIEW = $_cgi_tat_view_path
+CONF_CGI_TAT_VIEW_2 = $_cgi_tat_view_2_path
+CONF_CGI_VIEW = $_cgi_view_path
+CONF_CGI_VIEW_2 = $_cgi_view_2_path
+
+
+
+
+
MAKE_TARGET = TARGET = $target
MAKE_PERL = PERL = $perl
MAKE_RM = RM = $rm
-MAKE_BIN_PATH = BIN_PATH = $bin_path
-MAKE_LIB_PATH = LIB_PATH = $lib_path
-MAKE_WWW_PATH = WWW_PATH = $www_path
+MAKE_BIN_PATH = BIN_PATH = $_bin_path
+MAKE_LIB_PATH = LIB_PATH = $_lib_path
+MAKE_WWW_PATH = WWW_PATH = $_www_path
MAKE_CONF = CONF = $_conf_path