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
Vladislav
eepm
Commits
8a6cb6cb
Commit
8a6cb6cb
authored
Dec 08, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pack_in_onefile.sh: pack scripts on one file
parent
4829ba31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletion
+47
-1
epm
bin/epm
+2
-1
pack_in_onefile.sh
pack_in_onefile.sh
+45
-0
No files found.
bin/epm
View file @
8a6cb6cb
...
@@ -98,7 +98,8 @@ case $progname in
...
@@ -98,7 +98,8 @@ case $progname in
epm|upm|eepm
)
epm|upm|eepm
)
;;
;;
*
)
*
)
fatal
"Unknown command:
$progname
"
# epm by default
# fatal "Unknown command: $progname"
;;
;;
esac
esac
...
...
pack_in_onefile.sh
0 → 100755
View file @
8a6cb6cb
#!/bin/sh
incorporate_distr_info
()
{
cat
<<
EOF
>>
$OUTPUT
internal_distr_info()
{
EOF
cat
bin/distr_info
>>
$OUTPUT
cat
<<
EOF
>>
$OUTPUT
}
EOF
}
filter_out
()
{
grep
-v
"^load_helper"
|
sed
-e
's|DISTRVENDOR=$PROGDIR/distr_info|DISTRVENDOR=internal_distr_info|g'
}
incorporate_all
()
{
OUTPUT
=
$PACKCOMMAND
-packed
.sh
echo
-n
>
$OUTPUT
awk
'BEGIN{desk=0}{if(/^load_helper epm-sh-functions/){desk++};if(desk==0) {print}}'
<bin/
$PACKCOMMAND
>>
$OUTPUT
for
i
in
bin/epm-sh-functions
$(
ls
-1
bin/
$PACKCOMMAND
-
*
|
grep
-v
epm-sh-functions |
sort
)
;
do
echo
echo
"# File
$i
:"
cat
$i
|
grep
-v
"^#"
done
| filter_out
>>
$OUTPUT
incorporate_distr_info
awk
'BEGIN{desk=0}{if(desk>0) {print} ; if(/^load_helper epm-sh-functions/){desk++}}'
<bin/
$PACKCOMMAND
| filter_out
>>
$OUTPUT
}
###############
PACKCOMMAND
=
epm
incorporate_all
###############
PACKCOMMAND
=
serv
incorporate_all
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