Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
korinf
etersoft-build-utils
Commits
c62a97d4
Commit
c62a97d4
authored
Aug 20, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runinhsh: fix running firefox-gost
parent
797cad43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
9 deletions
+24
-9
runinhsh
bin/runinhsh
+24
-9
No files found.
bin/runinhsh
View file @
c62a97d4
...
...
@@ -7,8 +7,15 @@
# TODO: run by desktop file from installed package
# TODO: run the same binary like in host system with autodetected package
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
echo
"runinhsh [-b REPONAME] [command] - run command inside hasher for REPONAME distro"
echo
"runinhsh [-b REPONAME] [package/command] [command] - run command inside hasher for REPONAME distro"
echo
"Examples:"
echo
"
$
runinhsh -b p8 firefox-gost firefox"
echo
"
$
runinhsh -b p8 chromium"
exit
0
fi
...
...
@@ -36,19 +43,27 @@ COMMAND="$1"
PACKAGE
=
$(
epmqf
--quiet
"
$COMMAND
"
2>/dev/null
)
if
[
-n
"
$PACKAGE
"
]
;
then
PACKAGE
=
$(
echo
"
$PACKAGE
"
| epm print name
for
package
)
else
PACKAGE
=
"
$COMMAND
"
fi
[
-n
"
$PACKAGE
"
]
||
PACKAGE
=
"
$COMMAND
"
shift
[
-n
"
$1
"
]
&&
COMMAND
=
"
$@
"
PACKAGES
=
"
$PACKAGE
"
OPTIONS
=
case
$PACKAGE
in
firefox
*
)
PACKAGE
=
"
$PACKAGE
$PLUGINJAVA
"
;;
""
)
echo
"Can't find package for '
$COMMAND
'"
>
&2
exit
-1
PACKAGES
=
"
$PACKAGES
$PLUGINJAVA
"
OPTIONS
=
"
$OPTIONS
--no-remote"
;;
# "")
# echo "Can't find package for '$COMMAND'" >&2
# exit -1
# ;;
*
)
PACKAGE
=
"
$PACKAGE
dbus"
PACKAGE
S
=
"
$PACKAGES
dbus"
esac
share_network
=
1 loginhsh
-Y
-t
-p
$COMMAND
-r
$COMMAND
$PLATFORM
$PACKAGE
showcmd loginhsh
-Y
-t
-p
$PACKAGE
$PLATFORM
-r
"
$COMMAND
$OPTIONS
"
$PACKAGES
share_network
=
1 loginhsh
-Y
-t
-p
$PACKAGE
$PLATFORM
-r
"
$COMMAND
$OPTIONS
"
$PACKAGES
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