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
66e0425d
Commit
66e0425d
authored
Feb 20, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introduce runinhsh command for run any packaged command in hasher
parent
e59c0afc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
runinhsh
bin/runinhsh
+40
-0
No files found.
bin/runinhsh
0 → 100755
View file @
66e0425d
#!/bin/sh
# 2016 (c) Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
# TODO: hasher per program
# TODO: run by desktop file from installed package
# TODO: run the same binary like in host system with autodetected package
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
echo
"runinhsh [-b REPONAME] [command] - run command inside hasher for REPONAME distro"
exit
0
fi
PLATFORM
=
# firefox plugin hack
PLUGINJAVA
=
mozilla-plugin-java-1.7.0-openjdk
if
[
"
$1
"
=
"-b"
]
;
then
PLATFORM
=
"-b
$2
"
PLUGINJAVA
=
mozilla-plugin-java-1.6.0-sun
shift
2
fi
# TODO --short
#PACKAGE=$(epmqf --quiet --short "$1")
COMMAND
=
"
$1
"
PACKAGE
=
$(
epmqf
--quiet
"
$COMMAND
"
| epm print name
for
package
)
case
$PACKAGE
in
firefox
)
PACKAGE
=
"
$PACKAGE
$PLUGINJAVA
"
;;
""
)
echo
"Can't find package for '
$COMMAND
'"
>
&2
exit
-1
;;
esac
share_network
=
1 loginhsh
-Y
-t
-p
$COMMAND
-r
$COMMAND
$PLATFORM
$PACKAGE
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