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
bcbf3020
Commit
bcbf3020
authored
Mar 06, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introduce check_rsync, get_rsync_path and repos/rsync
parent
85b4ba40
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
0 deletions
+44
-0
rsync
etc/repos/rsync
+15
-0
repos
share/eterbuild/functions/repos
+5
-0
web
share/eterbuild/functions/web
+7
-0
check_rsync.sh
tests/check_rsync.sh
+17
-0
No files found.
etc/repos/rsync
0 → 100644
View file @
bcbf3020
# ALT Linux
git.alt sisyphus rsync.altlinux.org::ALTLinux/Sisyphus
git.alt 5.1 rsync.altlinux.org::ALTLinux/5.1/branch
git.alt 5.0 rsync.altlinux.org::ALTLinux/5.0/branch
git.alt 4.1 rsync.altlinux.org::ALTLinux/4.1/branch
git.alt 4.0 rsync.altlinux.org::ALTLinux/4.0/branch
# Etersoft
git.eter sisyphus rsync://rsync.etersoft.ru/pub/Etersoft/LINUX@Etersoft/Sisyphus
git.eter 5.1 rsync://rsync.etersoft.ru/pub/Etersoft/LINUX@Etersoft/5.1/branch
git.eter 5.0 rsync://rsync.etersoft.ru/pub/Etersoft/LINUX@Etersoft/5.0/branch
git.eter 4.1 rsync://rsync.etersoft.ru/pub/Etersoft/LINUX@Etersoft/4.1/branch
git.eter 4.0 rsync://rsync.etersoft.ru/pub/Etersoft/LINUX@Etersoft/4.0/branch
share/eterbuild/functions/repos
View file @
bcbf3020
...
@@ -7,3 +7,8 @@ get_git_url()
...
@@ -7,3 +7,8 @@ get_git_url()
{
{
grep
"^
$1
"
$ETERBUILDETC
/repos/git |
cut
-f2
-d
" "
grep
"^
$1
"
$ETERBUILDETC
/repos/git |
cut
-f2
-d
" "
}
}
get_rsync_path
()
{
grep
"^
$1
$2
"
$ETERBUILDETC
/repos/rsync |
cut
-f3
-d
" "
}
share/eterbuild/functions/web
View file @
bcbf3020
...
@@ -7,6 +7,7 @@ which xdg-open 2>/dev/null >/dev/null && BROWSER=xdg-open
...
@@ -7,6 +7,7 @@ which xdg-open 2>/dev/null >/dev/null && BROWSER=xdg-open
# (command from perl-libwww)
# (command from perl-libwww)
which GET &>/dev/null
&&
GET
=
GET
||
GET
=
false
which GET &>/dev/null
&&
GET
=
GET
||
GET
=
false
which rsync &>/dev/null
&&
RSYNC
=
rsync
||
GET
=
false
download_url
()
download_url
()
{
{
...
@@ -19,3 +20,9 @@ check_url()
...
@@ -19,3 +20,9 @@ check_url()
{
{
$GET
-d
"
$1
"
$GET
-d
"
$1
"
}
}
check_rsync
()
{
[
-n
"
$1
"
]
||
return
1
$RSYNC
-n
"
$1
"
>
/dev/null 2>&1
}
tests/check_rsync.sh
0 → 100755
View file @
bcbf3020
#!/bin/sh
.
`
dirname
$0
`
/../share/eterbuild/functions/common
#load_mod spec
check
()
{
[
"
$2
"
!=
"
$3
"
]
&&
echo
"FATAL with '
$1
': result '
$3
' do not match with '
$2
'"
||
echo
"OK for '
$1
' with '
$2
'"
}
for
GEAR
in
git.alt git.eter
;
do
for
BRANCH
in
sisyphus 5.1 5.0 4.1 4.0 3.0
;
do
RSYNCPATH
=
$(
get_rsync_path
$GEAR
$BRANCH
)
echo
check_rsync
$RSYNCPATH
&&
echo
"OK with
$RSYNCPATH
for
$GEAR
$BRANCH
"
||
echo
"FAILED with
$RSYNCPATH
for
$GEAR
$BRANCH
"
done
done
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