Skip to content
Snippets Groups Projects
Commit aa6b917e authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

Prepare for the next 66 release.

Change identifier, Fix seed_directory replacement.
Avoid conflict with identifier from 66.
Make a distinction between Makefile variable replacement
and module replacement inside frontend file.
parent 19d6f704
No related branches found
No related tags found
No related merge requests found
...@@ -21,17 +21,17 @@ install-script: $(SCRIPT_TARGET:module/configure/%=$(DESTDIR)$(service_directory ...@@ -21,17 +21,17 @@ install-script: $(SCRIPT_TARGET:module/configure/%=$(DESTDIR)$(service_directory
$(DESTDIR)$(service_directory)/$(package)/%: module/% $(DESTDIR)$(service_directory)/$(package)/%: module/%
exec $(INSTALL) -D -m 644 $< $@ exec $(INSTALL) -D -m 644 $< $@
sed -i -e 's,@VERSION@,$(version),' \ sed -i -e 's,%%VERSION%,$(version),' \
-e "s,@LIVEDIR@,$(livedir)," \ -e "s,%%LIVEDIR%%,$(livedir)," \
-e "s,@USER_CONF_DIR@,$(service_userconf)," \ -e "s,%%USER_CONF_DIR%%,$(service_userconf)," \
-e "s,@LOGGER@,$(LOGGER)," \ -e "s,%%LOGGER%%,$(LOGGER)," \
-e "s,@USE_ENVIRONMENT@,$(USE_ENVIRONMENT)," \ -e "s,%%USE_ENVIRONMENT%%,$(USE_ENVIRONMENT)," \
-e "s,@VERBOSITY_LEVEL@,$(VERBOSITY_LEVEL)," \ -e "s,%%VERBOSITY_LEVEL%%,$(VERBOSITY_LEVEL)," \
-e "s,@NOTIFY@,$(NOTIFY)," $@ -e "s,%%NOTIFY%%,$(NOTIFY)," $@
$(DESTDIR)$(service_directory)/$(package)/configure/%: module/configure/% $(DESTDIR)$(service_directory)/$(package)/configure/%: module/configure/%
exec $(INSTALL) -D -m 755 $< $@ exec $(INSTALL) -D -m 755 $< $@
sed -i -e 's,@BINDIR@,$(bindir),' $@ sed -i -e 's,%%BINDIR%%,$(bindir),' $@
version: version:
@echo $(version) @echo $(version)
......
#!@BINDIR@/sh #!%%BINDIR%%/sh
## 66-yeller variable ## 66-yeller variable
export PROG="${MOD_NAME}" export PROG="${MOD_NAME}"
...@@ -57,21 +57,21 @@ if execl-toc -X -V LIVE_DIRECTORY; then ...@@ -57,21 +57,21 @@ if execl-toc -X -V LIVE_DIRECTORY; then
absolute_path "LIVE_DIRECTORY" "${LIVE_DIRECTORY}" absolute_path "LIVE_DIRECTORY" "${LIVE_DIRECTORY}"
66-yeller set live directory to: %b"${LIVE_DIRECTORY}"%n 66-yeller set live directory to: %b"${LIVE_DIRECTORY}"%n
sed -i "s:@live_dir@:-l ${LIVE_DIRECTORY}:" "${svscan}" || die "unable to set the live directory to use" sed -i "s:%%livedir%%:-l ${LIVE_DIRECTORY}:" "${svscan}" || die "unable to set the live directory to use"
else else
66-yeller set live directory to: %b${MOD_LIVE}%n 66-yeller set live directory to: %b${MOD_LIVE}%n
sed -i "s:@live_dir@:-l ${MOD_LIVE}:" "${svscan}" || die "unable to set the live directory to use" sed -i "s:%%livedir%%:-l ${MOD_LIVE}:" "${svscan}" || die "unable to set the live directory to use"
fi fi
if [ "${USE_ENVIRONMENT}" = yes ]; then if [ "${USE_ENVIRONMENT}" = yes ]; then
enable "setenv@${owner}" enable "setenv@${owner}"
sed -i "s:@use_environment@:-e ${home_env}:" "${svscan}" || die "unable to set environment directory to use" sed -i "s:%%use_environment%%:-e ${home_env}:" "${svscan}" || die "unable to set environment directory to use"
sed -i "s:@environment_path@:${home_env}:g" "${FRONTEND_PATH}/setenv@" || die "unable to set environment directory to use" sed -i "s:%%environment_path%%:${home_env}:g" "${FRONTEND_PATH}/setenv@" || die "unable to set environment directory to use"
else else
disable "setenv@@I" disable "setenv@@I"
sed -i "s:@use_environment@::" "${svscan}" || die "unable to set environment directory to use" sed -i "s:%%use_environment%%::" "${svscan}" || die "unable to set environment directory to use"
fi fi
if [ "${LOGGER}" != "yes" ]; then if [ "${LOGGER}" != "yes" ]; then
...@@ -83,14 +83,14 @@ fi ...@@ -83,14 +83,14 @@ fi
if [ "${NOTIFY}" != "yes" ]; then if [ "${NOTIFY}" != "yes" ]; then
66-yeller %rdisable%n notification 66-yeller %rdisable%n notification
sed -i "s:@notify@::" "${svscan}" || die "unable to disable notification" sed -i "s:%%notify%%::" "${svscan}" || die "unable to disable notification"
sed -i "s:@notify:#@notify:" "${svscan}" || die "unable to disable notification" sed -i "s:@notify:#@notify:" "${svscan}" || die "unable to disable notification"
else else
66-yeller %benable%n notification 66-yeller %benable%n notification
sed -i "s:@notify@:-d3:" "${svscan}" || die "unable to enable notification" sed -i "s:%%notify%%:-d3:" "${svscan}" || die "unable to enable notification"
fi fi
66-yeller set verbosity level to: %b"${VERBOSITY_LEVEL}"%n 66-yeller set verbosity level to: %b"${VERBOSITY_LEVEL}"%n
sed -i "s:@verbosity_level@:-v${VERBOSITY_LEVEL}:" "${svscan}" || die "unable to set verbosity" sed -i "s:%%verbosity_level%%:-v${VERBOSITY_LEVEL}:" "${svscan}" || die "unable to set verbosity"
66-yeller "%bsuccessfully%n configured" 66-yeller "%bsuccessfully%n configured"
[main] [main]
@type = oneshot @type = oneshot
@version = @version@ @version = %%version%%
@description = "Set well-know variables for @I user" @description = "Set well-know variables for @I user"
@user = ( root ) @user = ( root )
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
backtick -n HOME { homeof @I } backtick -n HOME { homeof @I }
importas -u HOME HOME importas -u HOME HOME
execl-toc -v3 -d @environment_path@ execl-toc -v3 -d %%environment_path%%
redirfd -w 1 @environment_path@/.svscan@@I redirfd -w 1 %%environment_path%%/.svscan@@I
## GENERAL VARIABLES ## GENERAL VARIABLES
......
[main] [main]
@type = classic @type = classic
@version = @version@ @version = %%version%%
@description = "Create and start a nested scandir for @I" @description = "Create and start a nested scandir for @I"
@user = ( root ) @user = ( root )
@depends = ( setenv@@I ) @depends = ( setenv@@I )
...@@ -23,6 +23,6 @@ ...@@ -23,6 +23,6 @@
) )
[environment] [environment]
Args66=!@verbosity_level@ @live_dir@ Args66=!%%verbosity_level%% %%livedir%%
ArgsScandirStart=!start @notify@ @use_environment@ ArgsScandirStart=!start %%notify%% %%use_environment%%
ArgsScandirStop=!stop ArgsScandirStop=!stop
[main] [main]
@type = module @type = module
@version = @VERSION@ @version = %%VERSION%
@description = "Create a nested scandir for @I" @description = "Create a nested scandir for @I"
@user = ( root ) @user = ( root )
@intree = session @intree = session
...@@ -9,28 +9,28 @@ ...@@ -9,28 +9,28 @@
@configure="@I" @configure="@I"
@files = ( @M=@I ) @files = ( @M=@I )
@infiles = ( @infiles = (
::@version@=@VERSION@ ) ::%%version%%=%%VERSION% )
[environment] [environment]
## Run the scandir at LIVE_DIRECTORY. ## Run the scandir at LIVE_DIRECTORY.
## Need to be an absolute path. ## Need to be an absolute path.
## If commented the default is @LIVEDIR@ ## If commented the default is %%LIVEDIR%%
#LIVE_DIRECTORY=@LIVEDIR@ #LIVE_DIRECTORY=%%LIVEDIR%%
## Create an associated logger [yes|no] ## Create an associated logger [yes|no]
@LOGGER@ %%LOGGER%%
## Launch the scandir with a environment [yes|no]. ## Launch the scandir with a environment [yes|no].
## The environment directory is: $HOME/@USER_CONF_DIR@/svscan@@I ## The environment directory is: $HOME/%%USER_CONF_DIR%%/svscan@@I
@USE_ENVIRONMENT@ %%USE_ENVIRONMENT%%
## Use notification [yes|no] ## Use notification [yes|no]
@NOTIFY@ %%NOTIFY%%
## Level of verbosity [0-5] ## Level of verbosity [0-5]
@VERBOSITY_LEVEL@ %%VERBOSITY_LEVEL%%
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment