Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
7a2f045b
Commit
7a2f045b
authored
May 14, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.56.0
parent
70dff585
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
7 deletions
+34
-7
epm.sh
packed/epm.sh
+0
-0
serv.sh
packed/serv.sh
+34
-7
No files found.
packed/epm.sh
View file @
7a2f045b
This diff is collapsed.
Click to expand it.
packed/serv.sh
View file @
7a2f045b
...
...
@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.5
5.8
"
EPMVERSION
=
"3.5
6.0
"
# package, single (file), pipe, git
EPMMODE
=
"package"
...
...
@@ -48,12 +48,20 @@ fi
load_helper
()
{
local
shieldname
=
"loaded
$(
echo
"
$1
"
|
sed
-e
's|-||g'
)
"
# already loaded
eval
"test -n
\"\$
$shieldname
\"
"
&&
debug
"Already loaded
$1
"
&&
return
local
CMD
=
"
$SHAREDIR
/
$1
"
[
-r
"
$CMD
"
]
||
fatal
"Have no
$CMD
helper file"
# do not use fatal() here, it can be initial state
[
-r
"
$CMD
"
]
||
{
echo
"FATAL: Have no
$CMD
helper file"
;
exit
1
;
}
eval
"
$shieldname
=1"
# shellcheck disable=SC1090
.
$CMD
}
# File bin/epm-sh-functions:
...
...
@@ -272,7 +280,7 @@ subst_option()
store_output
()
{
# use make_temp_file from etersoft-build-utils
RC_STDOUT
=
"
$(
mktemp
)
"
RC_STDOUT
=
"
$(
mktemp
)
"
||
fatal
local
CMDSTATUS
=
$RC_STDOUT
.pipestatus
echo
1
>
$CMDSTATUS
#RC_STDERR=$(mktemp)
...
...
@@ -303,7 +311,7 @@ epm()
# run epm again to full initialization
local
bashopt
=
''
[
-n
"
$
verbose
"
]
&&
bashopt
=
'-x'
[
-n
"
$
debug
"
]
&&
bashopt
=
'-x'
$CMDSHELL
$bashopt
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
}
...
...
@@ -313,7 +321,7 @@ sudoepm()
[
"
$EPMMODE
"
=
"pipe"
]
&&
fatal
"Can't use sudo epm call from the piped script"
local
bashopt
=
''
[
-n
"
$
verbose
"
]
&&
bashopt
=
'-x'
[
-n
"
$
debug
"
]
&&
bashopt
=
'-x'
sudorun
$CMDSHELL
$bashopt
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
}
...
...
@@ -329,6 +337,18 @@ fatal()
exit
1
}
debug
()
{
[
-n
"
$debug
"
]
||
return
if
[
-z
"
$TEXTDOMAIN
"
]
;
then
set_color
$YELLOW
>
&2
echo
-n
"WARNING: "
>
&2
restore_color
>
&2
echo
"
$*
"
>
&2
fi
}
warning
()
{
if
[
-z
"
$TEXTDOMAIN
"
]
;
then
...
...
@@ -590,15 +610,21 @@ disabled_eget()
$EGET
"
$@
"
}
disabled_erc
()
{
__epm_assure_7zip
()
{
# install 7zip in any case (can be used)
if
is_command 7z
||
is_command 7za
||
is_command 7zr
||
is_command 7zz
;
then
:
else
epm
install
p7zip
fi
}
disabled_erc
()
{
__epm_assure_7zip
# use internal eget only if exists
if
[
-s
$SHAREDIR
/tools_erc
]
;
then
...
...
@@ -876,6 +902,7 @@ subst()
fi
check_core_commands
()
{
#which which >/dev/null || fatal "Can't find which command (which or debianutils package is missed?)"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment