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
Nurlan
eepm
Commits
17a80a1d
Commit
17a80a1d
authored
Feb 11, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update pack_in_onefile script
parent
cef80e2e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
eepm.spec
eepm.spec
+2
-2
pack_in_onefile.sh
pack_in_onefile.sh
+11
-2
No files found.
eepm.spec
View file @
17a80a1d
...
...
@@ -39,8 +39,8 @@ See detailed description here: http://wiki.etersoft.ru/EPM
%install
# install to datadir and so on
%makeinstall version=%version-%release
./pack_in_onefile
.sh
install -m 0755
*packed.sh %buildroot/%_datadir/%name/
install -m 0755 packed/epm.sh %buildroot/%_datadir/%name/epm-packed
.sh
install -m 0755
packed/serv.sh %buildroot/%_datadir/%name/serv-packed.sh
mkdir -p %buildroot%_sysconfdir/bash_completion.d/
install -m 0644 bash_completion/serv %buildroot%_sysconfdir/bash_completion.d/serv
...
...
pack_in_onefile.sh
View file @
17a80a1d
...
...
@@ -34,14 +34,22 @@ cat <<EOF >>$OUTPUT
EOF
}
get_version
()
{
grep
"^Version:"
eepm.spec |
head
-n1
|
sed
"s|Version: *||g"
}
filter_out
()
{
grep
-v
"^load_helper "
|
sed
-e
's|DISTRVENDOR=$PROGDIR/distr_info|DISTRVENDOR=internal_distr_info|g'
grep
-v
"^load_helper "
|
sed
-e
's|DISTRVENDOR=$PROGDIR/distr_info|DISTRVENDOR=internal_distr_info|g'
|
\
sed
-e
"s|@VERSION@|
$(
get_version
)
|g"
}
incorporate_all
()
{
OUTPUT
=
$PACKCOMMAND
-packed
.sh
mkdir
-p
packed
OUTPUT
=
packed/
$PACKCOMMAND
.sh
echo
-n
>
$OUTPUT
awk
'BEGIN{desk=0}{if(/^load_helper epm-sh-functions/){desk++};if(desk==0) {print}}'
<bin/
$PACKCOMMAND
| filter_out
>>
$OUTPUT
...
...
@@ -54,6 +62,7 @@ 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
chmod
0755
$OUTPUT
}
###############
...
...
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