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
Nurlan
eepm
Commits
c6d0a6c3
Commit
c6d0a6c3
authored
Jan 14, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed files
parent
b4b4466a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
41 deletions
+10
-41
epm.sh
packed/epm.sh
+5
-39
serv.sh
packed/serv.sh
+5
-2
No files found.
packed/epm.sh
View file @
c6d0a6c3
...
...
@@ -264,7 +264,10 @@ set_sudo()
withtimeout
()
{
local
TO
=
$(
which
timeout
2>/dev/null
||
which gtimeout 2>/dev/null
)
[
-n
"
$TO
"
]
&&
$TO
$@
||
$@
[
-n
"
$TO
"
]
&&
$TO
$@
&&
return
# drop time arg
shift
$@
}
set_eatmydata
()
...
...
@@ -300,7 +303,7 @@ assure_exists()
eget
()
{
$PROGDIR
/
epm
-eget
"
$@
"
$PROGDIR
/
tools
-eget
"
$@
"
}
get_package_type
()
...
...
@@ -1044,43 +1047,6 @@ epm_downgrade()
esac
}
# File bin/epm-eget:
WGET
=
"wget -q"
if
echo
"
$1
"
|
grep
-q
"
\(
^ftp://
\|
[^*]
$\
)"
;
then
$WGET
$1
&&
exit
0
fi
URL
=
$(
echo
$1
|
grep
/
$
||
dirname
$1
)
MASK
=
$(
basename
$1
)
MYTMPDIR
=
"
$(
mktemp
-d
)
"
DIRALLFILES
=
"
$MYTMPDIR
/files/"
get_index
(){
INDEX
=
$MYTMPDIR
/index
$WGET
$URL
-O
$INDEX
}
save_temp_files
(){
mkdir
-p
$DIRALLFILES
ALLFILES
=
"
$MYTMPDIR
/allfiles"
cat
$INDEX
|
grep
-o
-E
'href="([^\*/"#]+)"'
|
cut
-d
'"'
-f2
>
$ALLFILES
while
read
line
;
do
touch
$DIRALLFILES
/
$line
done
<
$ALLFILES
}
sort_files
(){
for
line
in
$DIRALLFILES
/
$MASK
;
do
$WGET
$URL
/
`
basename
"
$line
"
`
-P
$CURRENTDIR
/
done
}
get_index
save_temp_files
sort_files
# File bin/epm-filelist:
...
...
packed/serv.sh
View file @
c6d0a6c3
...
...
@@ -262,7 +262,10 @@ set_sudo()
withtimeout
()
{
local
TO
=
$(
which
timeout
2>/dev/null
||
which gtimeout 2>/dev/null
)
[
-n
"
$TO
"
]
&&
$TO
$@
||
$@
[
-n
"
$TO
"
]
&&
$TO
$@
&&
return
# drop time arg
shift
$@
}
set_eatmydata
()
...
...
@@ -298,7 +301,7 @@ assure_exists()
eget
()
{
$PROGDIR
/
epm
-eget
"
$@
"
$PROGDIR
/
tools
-eget
"
$@
"
}
get_package_type
()
...
...
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