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
6916f592
Commit
6916f592
authored
Mar 31, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm pack.d: add __handle_tarname (unused)
parent
0e7c41d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
common.sh
pack.d/common.sh
+19
-0
No files found.
pack.d/common.sh
View file @
6916f592
...
@@ -65,6 +65,24 @@ has_wildcard()
...
@@ -65,6 +65,24 @@ has_wildcard()
[
"
${
1
/\*/
}
"
!=
"
$1
"
]
[
"
${
1
/\*/
}
"
!=
"
$1
"
]
}
}
__handle_tarname
()
{
# TODO: we don't know PKGNAME here
PKGNAME
=
if
[
-n
"
$EEPM_INTERNAL_PKGNAME
"
]
;
then
# it is ok
[
"
$EEPM_INTERNAL_PKGNAME
"
=
"
$PKGNAME
"
]
&&
continue
# PKGNAME was changed in play.d script after common.sh include
echo
"Packing as
$PKGNAME
(not
$EEPM_INTERNAL_PKGNAME
as it said before) ..."
else
# it is possible direct call, not from epm play
echo
"Packing as
$PKGNAME
package ..."
fi
export
EEPM_INTERNAL_PKGNAME
=
"
$PKGNAME
"
}
return_tar
()
return_tar
()
{
{
...
@@ -72,6 +90,7 @@ return_tar()
...
@@ -72,6 +90,7 @@ return_tar()
[
-n
"
$RETURNTARNAME
"
]
||
fatal
"RETURNTARNAME is empty"
[
-n
"
$RETURNTARNAME
"
]
||
fatal
"RETURNTARNAME is empty"
rm
-f
$RETURNTARNAME
rm
-f
$RETURNTARNAME
for
i
in
$*
;
do
for
i
in
$*
;
do
#__handle_tarname $i
realpath
$i
>>
$RETURNTARNAME
||
fatal
"Can't save tar name
$i
to file
$RETURNTARNAME
"
realpath
$i
>>
$RETURNTARNAME
||
fatal
"Can't save tar name
$i
to file
$RETURNTARNAME
"
done
done
exit
0
exit
0
...
...
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