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
etersoft
eepm
Commits
2059be83
Commit
2059be83
authored
Mar 24, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: move unigine-heaven unpack to pack.d
parent
d4dfe9c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
+24
-12
unigine-heaven.sh
pack.d/unigine-heaven.sh
+22
-0
unigine-heaven.sh
play.d/unigine-heaven.sh
+2
-12
No files found.
pack.d/unigine-heaven.sh
0 → 100755
View file @
2059be83
#!/bin/sh
TAR
=
"
$1
"
#VERSION="$2"
RETURNTARNAME
=
"
$2
"
OPKGNAME
=
"Unigine_Heaven"
.
$(
dirname
$0
)
/common.sh
# args: <run file> <output tar>
convert_makeself_to_tar
()
{
offset
=
`
head
-n
403
"
$1
"
|
wc
-c
|
tr
-d
" "
`
dd
if
=
"
$1
"
ibs
=
$offset
skip
=
1
obs
=
1024
conv
=
sync
|
gzip
-cd
>
"
$2
"
}
BASENAME
=
"
$(
basename
$(
echo
$OPKGNAME
*
.run |
tr
"[A-Z_]"
"[a-z-]"
)
.run
)
"
convert_makeself_to_tar
$TAR
$BASENAME
.tar
return_tar
$BASENAME
.tar
play.d/unigine-heaven.sh
View file @
2059be83
...
...
@@ -6,21 +6,11 @@ DESCRIPTION="Unigine Heaven 2009 (Unigine Benchmark) from the official site"
.
$(
dirname
$0
)
/common.sh
convert_makeself_to_tar
()
{
offset
=
`
head
-n
403
"
$1
"
|
wc
-c
|
tr
-d
" "
`
dd
if
=
"
$1
"
ibs
=
$offset
skip
=
1
obs
=
1024
conv
=
sync
|
gzip
-cd
>
"
$(
basename
"
$1
"
.run
)
.tar"
}
PKGDIR
=
$(
mktemp
-d
)
trap
"rm -fr
$PKGDIR
"
EXIT
cd
$PKGDIR
||
fatal
# https://assets.unigine.com/d/Unigine_Heaven-4.0.run
epm tool eget
--latest
https://benchmark.unigine.com/heaven
"Unigine_Heaven*.run"
mv
Unigine_Heaven
*
.run
$(
echo
Unigine_Heaven
*
.run |
tr
"[A-Z_]"
"[a-z-]"
)
convert_makeself_to_tar
$PKGNAME
*
.run
epm
install
$PKGNAME
*
.tar
epm pack
--install
$PKGNAME
Unigine_Heaven
*
.run
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