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
5f1445dd
Commit
5f1445dd
authored
May 17, 2009
by
Vitaly Lipatov
Committed by
Vitaly Lipatov
Jul 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch to use git.alt build srpm instead rsync to Incoming
parent
b68d809a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
25 deletions
+57
-25
rpmbs
bin/rpmbs
+16
-4
rpmunmets
bin/rpmunmets
+2
-2
alt
share/eterbuild/functions/alt
+36
-7
common
share/eterbuild/functions/common
+1
-12
config
share/eterbuild/functions/config
+2
-0
No files found.
bin/rpmbs
View file @
5f1445dd
...
...
@@ -136,9 +136,12 @@ function release_check()
done
}
set_incoming
$MENV
#set_incoming $MENV
set_binaryrepo
$MENV
if
[
-n
"
${
DELETENOW
}
"
]
;
then
echog
"Removing did not realized yet"
exit
1
echog
"Removing from '
$RSYNCINCOMING
/
$INCOMING
/'"
check_key
for
i
in
$LISTBUILT
;
do
...
...
@@ -205,19 +208,28 @@ if [ -n "$SIGN" ]; then
if
[
"
$RET
"
=
"0"
]
then
if
[
-n
"
${
UPLOADNOW
}
"
]
;
then
echog
"Uploading to
'
$RSYNCINCOMING
/
$INCOMING
/'
"
echog
"Uploading to
$GIRARHOST
"
check_key
# TODO: rsync foo.src.rpm git.alt: && ssh git.alt build srpm foo.src.rpm
# git.alt build -b 4.0 srpm foo.src.rpm
rsync
-vay
--partial
--progress
$CHECKSUM
\
-e
ssh
$LISTBUILT
$
RSYNCINCOMING
/
$INCOMING
/
&&
\
-e
ssh
$LISTBUILT
$
GIRARHOST
:
&&
\
echo
"---------------------"
&&
\
echog
"All files synced"
||
fatal
"Error during rsync"
TASKLIST
=
""
for
i
in
$LISTBUILT
;
do
TASKLIST
=
"
$TASKLIST
srpm
$(
basename
$i
)
"
done
echo
"Create task for
$TASKLIST
"
ssh
$GIRARHOST
build
-b
$BINARYREPO
$TASKLIST
for
i
in
$LISTBUILT
;
do
LOGFILE
=
"
$LOGDIR
/
`
basename
$i
.src.rpm
`
$MENVARG
.log"
echo
>>
$LOGFILE
date
>>
$LOGFILE
echo
"uploaded"
>>
$LOGFILE
echo
"
$
i
uploaded to Incoming/
$INCOMING
(
$MENV
) at
`
date
"+%c"
`
"
>>
$RPMDIR
/uploaded.log
echo
"
$
(
basename
$i
)
uploaded to
$GIRARHOST
(
$MENV
) at
`
date
"+%c"
`
"
>>
$RPMDIR
/uploaded.log
done
else
...
...
bin/rpmunmets
View file @
5f1445dd
...
...
@@ -15,7 +15,7 @@ load_mod hasher
make_ordinalbox
()
{
mkdir
-p
$ORDINALWORKDIR
echo
"Build aptbox in
$ORDINALWORKDIR
..."
echo
"Build aptbox
from ordinal repo
in
$ORDINALWORKDIR
..."
#rm -rf $ORDINALWORKDIR
mkaptbox
-f
--apt-config
=
$ORDINALAPTCONF
$ORDINALWORKDIR
}
...
...
@@ -23,7 +23,7 @@ make_ordinalbox()
make_testingbox
()
{
mkdir
-p
$TESTINGWORKDIR
echo
"Build aptbox in
$TESTINGWORKDIR
..."
echo
"Build aptbox
from testing repo
in
$TESTINGWORKDIR
..."
#rm -rf $TESTINGWORKDIR
mkaptbox
-f
--apt-config
=
$TESTINGAPTCONF
$TESTINGWORKDIR
}
...
...
share/eterbuild/functions/alt
View file @
5f1445dd
...
...
@@ -25,11 +25,6 @@ set_target_type()
return
1
;
}
get_distr_version
()
{
echo
$1
|
sed
-e
"s|M
\(
[0-9]
\)\(
[0-9]
\)
|
\1\.\2
|g"
|
sed
-e
"s|SS|Sisyphus|g"
|
sed
-e
"s|DD|Daedalus|g"
}
set_incoming
()
{
INCOMING
=
"Sisyphus"
...
...
@@ -43,10 +38,44 @@ set_incoming()
;;
*
)
if
[
-n
"
$UPDATES
"
]
;
then
INCOMING
=
"updates/
`
get_distr_version
$1
`
"
INCOMING
=
"updates/
`
get_altdistr_version
$1
`
"
else
INCOMING
=
"backports/
`
get_altdistr_version
$1
`
"
fi
;;
esac
}
set_binaryrepo
()
{
BINARYREPO
=
"sisyphus"
test
-z
"
$1
"
&&
return
case
"
$1
"
in
(
"DD"
)
BINARYREPO
=
"daedalus"
;;
(
"SS"
)
BINARYREPO
=
"sisyphus"
;;
*
)
# TODO
if
[
-n
"
$UPDATES
"
]
;
then
BINARYREPO
=
"
`
get_altdistr_version
$1
`
"
else
INCOMING
=
"backports/
`
get_
distr_version
$1
`
"
BINARYREPO
=
"
`
get_alt
distr_version
$1
`
"
fi
;;
esac
}
# M50 -> 5.0
get_altdistr_version
()
{
echo
"
$1
"
|
sed
-e
"s|M
\(
[0-9]
\)\(
[0-9]
\)
|
\1\.\2
|g"
|
sed
-e
"s|SS|Sisyphus|g"
|
sed
-e
"s|DD|Daedalus|g"
}
# 5.0 -> M50
get_altdistr_mod
()
{
echo
"
$1
"
|
sed
-e
"s|
\(
[0-9]
\)\.\(
[0-9]
\)
|M
\1\2
|g"
|
sed
-e
"s|Sisyphus|SS|g"
}
share/eterbuild/functions/common
View file @
5f1445dd
...
...
@@ -100,7 +100,7 @@ VENDOR=`distr_vendor -s`
if
[
"
$VENDOR
"
=
"alt"
]
&&
[
-n
"
$MENV
"
]
;
then
[
-n
"
$APTCONF
"
]
||
APTCONF
=
${
APTCONFBASE
/.SS
}
.
$MENV
[
-n
"
$VERBOSE
"
]
&&
echog
"Target ALT Linux system:
`
get_distr_version
$MENV
`
, use
\$
APTCONF"
[
-n
"
$VERBOSE
"
]
&&
echog
"Target ALT Linux system:
`
get_
alt
distr_version
$MENV
`
, use
\$
APTCONF"
MENVARG
=
"-
$MENV
"
else
# FIXME: echog breakes vars
...
...
@@ -165,14 +165,3 @@ make_temp_file()
fi
}
# M50 -> 5.0
get_altdistr_version
()
{
echo
"
$1
"
|
sed
-e
"s|M
\(
[0-9]
\)\(
[0-9]
\)
|
\1\.\2
|g"
|
sed
-e
"s|SS|Sisyphus|g"
}
# 5.0 -> M50
get_altdistr_mod
()
{
echo
"
$1
"
|
sed
-e
"s|
\(
[0-9]
\)\.\(
[0-9]
\)
|M
\1\2
|g"
|
sed
-e
"s|Sisyphus|SS|g"
}
share/eterbuild/functions/config
View file @
5f1445dd
...
...
@@ -39,8 +39,10 @@ HASHERARG="--eager-cleanup"
[
-n
"
$DEBUG
"
]
&&
HASHERARG
=
"-v
$HASHERARG
"
RSYNCSISYPHUS
=
rsync.altlinux.org::ALTLinux/Sisyphus
# obsoleted
RSYNCINCOMING
=
devel:/incoming
#SSH_KEYFILE=~/.ssh/id_dsa
GIRARHOST
=
git.alt
BUILDSERVER
=
#BUILDSERVERPATH="$HASHERDIR/repo/i586/RPMS.hasher"
...
...
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