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