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
df974a0f
Commit
df974a0f
authored
Aug 18, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repack.d/common.sh: add pack_dir command
parent
a335a3f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
common.sh
repack.d/common.sh
+10
-0
No files found.
repack.d/common.sh
View file @
df974a0f
...
@@ -32,6 +32,16 @@ pack_file()
...
@@ -32,6 +32,16 @@ pack_file()
subst
"s|%files|%files
\n
$file
|"
$SPEC
subst
"s|%files|%files
\n
$file
|"
$SPEC
}
}
# Usage: pack_dir <path_to_dir>
pack_dir
()
{
local
file
=
"
$1
"
[
-n
"
$file
"
]
||
return
grep
-q
"^%dir[[:space:]]
$file
$"
$SPEC
&&
return
grep
-q
"^%dir[[:space:]]
\"
$file
\"
$"
$SPEC
&&
return
subst
"s|%files|%files
\n
%dir
$file
|"
$SPEC
}
add_bin_link_command
()
add_bin_link_command
()
{
{
...
...
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