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
c44d681c
Commit
c44d681c
authored
Jun 18, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runinhsh: rewrite
parent
3c799bbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
runinhsh
bin/runinhsh
+15
-11
No files found.
bin/runinhsh
View file @
c44d681c
...
...
@@ -39,23 +39,25 @@ fi
# TODO --short
#PACKAGE=$(epmqf --quiet --short "$1")
COMMAND
=
"
$1
"
PACKAGE
=
$(
$EPMCMD
qf
--quiet
"
$COMMAND
"
2>/dev/null
)
if
[
-n
"
$PACKAGE
"
]
;
then
PACKAGE
=
$(
echo
"
$PACKAGE
"
|
$EPMCMD
print name
for
package
)
if
[
-n
"
$2
"
]
;
then
PACKAGE
=
"
$1
"
COMMAND
=
"
$2
"
else
PACKAGE
=
"
$COMMAND
"
COMMAND
=
"
$1
"
PACKAGE
=
$(
$EPMCMD
qf
--quiet
"
$COMMAND
"
2>/dev/null
)
if
[
-n
"
$PACKAGE
"
]
;
then
PACKAGE
=
$(
echo
"
$PACKAGE
"
|
$EPMCMD
print name
for
package
)
else
PACKAGE
=
"
$COMMAND
"
fi
fi
shift
[
-n
"
$1
"
]
&&
COMMAND
=
"
$@
"
PACKAGES
=
"
$PACKAGE
"
OPTIONS
=
case
$PACKAGE
in
firefox
*
)
PACKAGES
=
"
$PACKAGES
$PLUGINJAVA
"
OPTIONS
=
"
$OPTIONS
--no-remote"
#
OPTIONS="$OPTIONS --no-remote"
;;
# "")
# echo "Can't find package for '$COMMAND'" >&2
...
...
@@ -65,5 +67,7 @@ case $PACKAGE in
PACKAGES
=
"
$PACKAGES
dbus"
esac
showcmd
$ETERBUILDBIN
/loginhsh
-Y
-t
-p
$PACKAGE
$PLATFORM
-r
"
$COMMAND
$OPTIONS
"
$PACKAGES
share_network
=
1
$ETERBUILDBIN
/loginhsh
-Y
-t
-p
$PACKAGE
$PLATFORM
-r
"
$COMMAND
$OPTIONS
"
$PACKAGES
HASHERNAME
=
$(
echo
"
$COMMAND
$PACKAGES
"
|
md5sum
)
showcmd
$ETERBUILDBIN
/loginhsh
-Y
-t
-p
$HASHERNAME
$PLATFORM
-r
"
$COMMAND
$OPTIONS
"
$PACKAGES
share_network
=
1
$ETERBUILDBIN
/loginhsh
-Y
-t
-p
$HASHERNAME
$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