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
ff8f8301
Commit
ff8f8301
authored
Jan 05, 2010
by
Yuri Fil
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.eter:/people/lav/packages/etersoft-build-utils
parents
6996f554
e2f0991f
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
189 additions
and
25 deletions
+189
-25
NEWS
NEWS
+10
-0
TODO
TODO
+4
-0
rpmbsh
bin/rpmbsh
+6
-4
rpmcs
bin/rpmcs
+9
-5
rpmgp
bin/rpmgp
+26
-4
rpmgs
bin/rpmgs
+12
-1
config
etc/config
+3
-0
repos
etc/repos
+3
-0
etersoft-build-utils.spec
etersoft-build-utils.spec
+9
-1
git
share/eterbuild/functions/git
+16
-0
repl
share/eterbuild/functions/repl
+3
-2
rpm
share/eterbuild/functions/rpm
+6
-0
grprepl.alt.4.0
share/eterbuild/grprepl/grprepl.alt.4.0
+1
-0
pkgrepl.mdv
share/eterbuild/pkgrepl/pkgrepl.mdv
+4
-1
pkgrepl.mdv.2009.x86_64
share/eterbuild/pkgrepl/pkgrepl.mdv.2009.x86_64
+1
-0
pkgrepl.mdv.x86_64
share/eterbuild/pkgrepl/pkgrepl.mdv.x86_64
+19
-1
get_packagename.sh
tests/get_packagename.sh
+19
-0
print_repo.sh
tests/print_repo.sh
+4
-0
check_publish.sh
tools/check_publish.sh
+34
-6
No files found.
NEWS
View file @
ff8f8301
etersoft-build-utils-1.7.0: 03 Jan 2010
- check_publish.sh: add check for exist git repo, list acl for package if it in git
- config: add GEAR_USER
- rpmgp: add git checking
- print_*req: use only start line field
- clean_pkgreq: skip gcc/cpp general packages
- rpmgs: add rar archive support
- rpmbsh: disable cd to SRPMS dir (will need fix?)
- spec: fix url (altbug #22476)
etersoft-build-utils-1.6.9: 21 Nov 2009
etersoft-build-utils-1.6.9: 21 Nov 2009
- fix GIRARHOST for subcommand
- fix GIRARHOST for subcommand
- drop rpm-build-compat require
- drop rpm-build-compat require
...
...
TODO
View file @
ff8f8301
lib, %files:
%post -p %post_ldconfig
%postun -p %postun_ldconfig
- upload.SS rpmbs -u
- upload.SS rpmbs -u
http://git.altlinux.org/people/kharpost/packages/gitalt-tasker.git?p=gitalt-tasker.git;a=blob;f=gitalt-tasker/git-task;h=81e0261813a9fe2be230fb0c47b4ff4efd9a2675;hb=bfcc80b9af49b8ea0629db80d4c2f29a024d574e
http://git.altlinux.org/people/kharpost/packages/gitalt-tasker.git?p=gitalt-tasker.git;a=blob;f=gitalt-tasker/git-task;h=81e0261813a9fe2be230fb0c47b4ff4efd9a2675;hb=bfcc80b9af49b8ea0629db80d4c2f29a024d574e
...
...
bin/rpmbsh
View file @
ff8f8301
...
@@ -70,6 +70,7 @@ fi
...
@@ -70,6 +70,7 @@ fi
parse_cmd_pre
"
$@
"
parse_cmd_pre
"
$@
"
mygetopts
$LISTARGS
mygetopts
$LISTARGS
# TODO: skip for prev. packed src.rpm
# If fail, we already has correct changelog
# If fail, we already has correct changelog
add_changelog_helper
"- new version"
$LISTNAMES
add_changelog_helper
"- new version"
$LISTNAMES
...
@@ -78,6 +79,7 @@ add_changelog_helper "- new version" $LISTNAMES
...
@@ -78,6 +79,7 @@ add_changelog_helper "- new version" $LISTNAMES
# FIXME:
# FIXME:
pack_src_rpm
$COMMIT
$(
echo
$LISTRPMARGS
|
sed
-e
"s|-[suUic]||g"
)
pack_src_rpm
$COMMIT
$(
echo
$LISTRPMARGS
|
sed
-e
"s|-[suUic]||g"
)
# TODO: skip for prev. packed src.rpm
set_specdir
$LISTNAMES
set_specdir
$LISTNAMES
if
[
-n
"
$REMOTEBUILD
"
]
;
then
if
[
-n
"
$REMOTEBUILD
"
]
;
then
...
@@ -88,8 +90,9 @@ if [ -n "$REMOTEBUILD" ] ; then
...
@@ -88,8 +90,9 @@ if [ -n "$REMOTEBUILD" ] ; then
echog
"############ Build at build server '
$BUILDSERVER
' (with
$LISTRPMARGS
options) ############"
echog
"############ Build at build server '
$BUILDSERVER
' (with
$LISTRPMARGS
options) ############"
echo
echo
echog
"==== Copying to build server ====="
echog
"==== Copying to build server ====="
#echog "It is recommended to rename old version at server for save traffic during rsync"
# FIXME: do not change dir? Why LISTBUILT is not full path?
cd
$RPMTOPDIR
/SRPMS
&&
rsync
-vay
--partial
--progress
--checksum
\
#cd $RPMTOPDIR/SRPMS
rsync
-vay
--partial
--progress
--checksum
\
-e
ssh
$LISTBUILT
$BUILDSERVER
:
$REMOTERPMDIR
/SRPMS/
||
fatal
"Error with rsync"
-e
ssh
$LISTBUILT
$BUILDSERVER
:
$REMOTERPMDIR
/SRPMS/
||
fatal
"Error with rsync"
ssh
-t
$BUILDSERVER
"cd
$REMOTERPMDIR
/SRPMS && time myhsh
$MENVARG
$LISTRPMARGS
$LISTBUILT
"
ssh
-t
$BUILDSERVER
"cd
$REMOTERPMDIR
/SRPMS && time myhsh
$MENVARG
$LISTRPMARGS
$LISTBUILT
"
RESULT
=
$?
RESULT
=
$?
...
@@ -99,13 +102,12 @@ if [ -n "$REMOTEBUILD" ] ; then
...
@@ -99,13 +102,12 @@ if [ -n "$REMOTEBUILD" ] ; then
else
else
cd
$RPMTOPDIR
/SRPMS
&&
time
$ETERBUILDBIN
/myhsh
$MENVARG
$LISTRPMARGS
$LISTBUILT
cd
$RPMTOPDIR
/SRPMS
&&
time
$ETERBUILDBIN
/myhsh
$MENVARG
$LISTRPMARGS
$LISTBUILT
RESULT
=
$?
RESULT
=
$?
cd
-
date
date
echo
"-------------------------------"
echo
"-------------------------------"
fi
fi
cd
-
# make src.rpm if build OK and we have options for rpmbs
# make src.rpm if build OK and we have options for rpmbs
if
[
"
$RESULT
"
=
"0"
]
&&
[
-n
"
$LISTRPMARGS
"
]
;
then
if
[
"
$RESULT
"
=
"0"
]
&&
[
-n
"
$LISTRPMARGS
"
]
;
then
...
...
bin/rpmcs
View file @
ff8f8301
...
@@ -288,14 +288,18 @@ do
...
@@ -288,14 +288,18 @@ do
subst
"s|%perl_vendorlib|%perl_vendor_privlib|g
subst
"s|%perl_vendorlib|%perl_vendor_privlib|g
s|%perl_vendorarch|%perl_vendor_archlib|g"
$i
s|%perl_vendorarch|%perl_vendor_archlib|g"
$i
subst
"s|%_datadir/doc
$|
%_docdir|g"
$i
# TODO for cleanup_spec:
subst
"s|%_datadir/doc/|%_docdir/|g"
$i
subst
"s|%_datadir/doc
$|
%_docdir|g
subst
"s|%_datadir/omf|%_omfdir|g"
$i
s|%_datadir/doc/|%_docdir/|g
subst
"s|%_defaultdocdir|%_docdir|g"
$i
s|%_datadir/omf|%_omfdir|g
subst
"s|%__autoreconf|%autoreconf|g"
$i
s|%_defaultdocdir|%_docdir|g
s|%_var/log|%_logdir|g
s|%_var/lib|%_localstatedir|g
s|%__autoreconf|%autoreconf|g"
$i
subst
"s|%rpmcflags|%optflags|g"
$i
subst
"s|%rpmcflags|%optflags|g"
$i
# drop useless construction
subst
"s|^%clean
$|
|g"
$i
subst
"s|^%clean
$|
|g"
$i
subst
"s|^%debug_package
$|
|g"
$i
subst
"s|^%debug_package
$|
|g"
$i
subst
"s|^rm -rf %buildroot
$|
|g"
$i
subst
"s|^rm -rf %buildroot
$|
|g"
$i
...
...
bin/rpmgp
View file @
ff8f8301
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# load common functions, compatible with local and installed script
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod rpm repl
load_mod rpm repl
git
# path to ALT Linux's repositories
# path to ALT Linux's repositories
REPOSITORY
=
"files/SRPMS obsolete orphaned"
REPOSITORY
=
"files/SRPMS obsolete orphaned"
...
@@ -237,20 +237,42 @@ fi
...
@@ -237,20 +237,42 @@ fi
# Check online
# Check online
if
[
-n
"
$CHECKONLINE
"
]
;
then
if
[
-n
"
$CHECKONLINE
"
]
;
then
# possible it is spec
if
[
-f
$1
]
;
then
if
[
-f
$1
]
;
then
build_rpms_name
"
$1
"
build_rpms_name
"
$1
"
SRCRPM
=
$NAMESRPMIN
SRCRPM
=
$NAMESRPMIN
PKGNAME
=
$(
get_pkgname_from_filename
$SRCRPM
)
else
if
echo
$1
|
grep
-q
rpm
;
then
SRCRPM
=
$1
PKGNAME
=
$(
get_pkgname_from_filename
$SRCRPM
)
else
else
echo
$1
|
grep
rpm 2>/dev/null
&&
SRCRPM
=
$1
||
PKGNAME
=
$1
SRCRPM
=
`
rpm
-q
$1
--queryformat
"%{SOURCERPM}
\n
"
|
tail
-n
1
`
SRCRPM
=
`
rpm
-q
$PKGNAME
--queryformat
"%{SOURCERPM}
\n
"
|
tail
-n
1
`
fi
fi
fi
if
[
-n
"
$GIRAR_USER
"
]
;
then
GITURL
=
"http://git.altlinux.org/people/
$GIRAR_USER
/packages/
$PKGNAME
.git"
if
GET
-d
$GITURL
;
then
echog
"Published at
$GITURL
by
$GIRAR_USER
"
else
echog
"There is no git repo
$GITURL
"
fi
fi
list_git_package
$PKGNAME
RET
=
"MISSED"
RET
=
"MISSED"
if
[
-n
"
$SRCRPM
"
]
;
then
for
i
in
$REPOSITORY
;
do
for
i
in
$REPOSITORY
;
do
echog
"Checking
in repository
$i
..."
echog
"Checking '
$SRCRPM
'
in repository
$i
..."
rsync
-n
--progress
$RSYNCSISYPHUS
/
$i
/
$SRCRPM
>
/dev/null 2>&1
&&
{
RET
=
$i
;
break
;
}
rsync
-n
--progress
$RSYNCSISYPHUS
/
$i
/
$SRCRPM
>
/dev/null 2>&1
&&
{
RET
=
$i
;
break
;
}
done
done
echog
"Repository Filename"
echog
"Repository Filename"
printf
"%-12s %30s
\n
"
$RET
$SRCRPM
printf
"%-12s %30s
\n
"
$RET
$SRCRPM
fi
if
[
"
$RET
"
=
"MISSED"
]
;
then
if
[
"
$RET
"
=
"MISSED"
]
;
then
exit
1
exit
1
fi
fi
...
...
bin/rpmgs
View file @
ff8f8301
...
@@ -151,6 +151,17 @@ function get_zip()
...
@@ -151,6 +151,17 @@ function get_zip()
}
}
# TODO: use external converter
# TODO: use external converter
function
get_rar
()
{
get_archive rar
||
return
$?
mkdir
$WEXT
.rar.dir
||
return
$?
cd
$WEXT
.rar.dir
unrar x ../
$WEXT
.rar
&&
tar
cf ../
$WEXT
.tar
.
||
return
cd
..
rm
-rf
$WEXT
.rar.dir
}
# TODO: use external converter
function
get_7z
()
function
get_7z
()
{
{
BIN7ZIP
=
/usr/bin/7z
BIN7ZIP
=
/usr/bin/7z
...
@@ -257,7 +268,7 @@ do
...
@@ -257,7 +268,7 @@ do
echo
"Get tarball for gear"
echo
"Get tarball for gear"
FORGEAR
=
1
FORGEAR
=
1
fi
fi
get_tarbz2
||
get_targz
||
get_tgz
||
get_7z
||
get_zip
||
get_tbz2
||
get_tbz
||
get_tar
||
dir_name
||
fatal
"Error: Cannot retrieve
$GETSOURCE
"
get_tarbz2
||
get_targz
||
get_tgz
||
get_7z
||
get_zip
||
get_tbz2
||
get_tbz
||
get_tar
||
get_rar
||
dir_name
||
fatal
"Error: Cannot retrieve
$GETSOURCE
"
fi
fi
if
[
-z
"
$FORGEAR
"
]
;
then
if
[
-z
"
$FORGEAR
"
]
;
then
...
...
etc/config
View file @
ff8f8301
...
@@ -70,3 +70,6 @@
...
@@ -70,3 +70,6 @@
# set dir for ccache cache
# set dir for ccache cache
# export CCACHE_DIR=$OURTMPDIR/ccache
# export CCACHE_DIR=$OURTMPDIR/ccache
# username on $GIRARHOST host
# GIRAR_USER=lav
etc/repos
View file @
ff8f8301
...
@@ -22,3 +22,6 @@ pld ftp://ftp.pld-linux.org/branches/titanium/PLD/SRPMS/RPMS
...
@@ -22,3 +22,6 @@ pld ftp://ftp.pld-linux.org/branches/titanium/PLD/SRPMS/RPMS
fedoraf http://download1.rpmfusion.org/free/fedora/releases/10/Everything/source/SRPMS/
fedoraf http://download1.rpmfusion.org/free/fedora/releases/10/Everything/source/SRPMS/
rpmfusion http://download1.rpmfusion.org/free/fedora/development/source/SRPMS/
rpmfusion http://download1.rpmfusion.org/free/fedora/development/source/SRPMS/
asp http://mirror.yandex.ru/asplinux/sources/SRPMS.14/
asp http://mirror.yandex.ru/asplinux/sources/SRPMS.14/
elrepo http://elrepo.org/linux/elrepo/el5/SRPMS/
elrepo-testing http://elrepo.org/linux/testing/el5/SRPMS/
elrepo-fasttrack http://elrepo.org/linux/fasttrack/el5/SRPMS/
etersoft-build-utils.spec
View file @
ff8f8301
Name: etersoft-build-utils
Name: etersoft-build-utils
Version: 1.
6.9
Version: 1.
7.0
Release: alt1
Release: alt1
Summary: A set of build rpm utilities
Summary: A set of build rpm utilities
...
@@ -64,6 +64,14 @@ RECOMMENDED packages: gcc-c++ perl-libwww ccache elinks mutt hasher curl
...
@@ -64,6 +64,14 @@ RECOMMENDED packages: gcc-c++ perl-libwww ccache elinks mutt hasher curl
%config(noreplace) %_sysconfdir/eterbuild/repos
%config(noreplace) %_sysconfdir/eterbuild/repos
%changelog
%changelog
* Sun Jan 03 2010 Vitaly Lipatov <lav@altlinux.ru> 1.7.0-alt1
- check_publish.sh: add check for exist git repo, list acl for package if it in git
- config: add GEAR_USER
- rpmgp: add git checking
- clean_pkgreq: skip gcc/cpp general packages
- rpmgs: add rar archive support
- spec: fix url (fix alt bug #22476)
* Fri Nov 27 2009 Vitaly Lipatov <lav@altlinux.ru> 1.6.9-alt1
* Fri Nov 27 2009 Vitaly Lipatov <lav@altlinux.ru> 1.6.9-alt1
- fix GIRARHOST for subcommand
- fix GIRARHOST for subcommand
- drop rpm-build-compat requires
- drop rpm-build-compat requires
...
...
share/eterbuild/functions/git
View file @
ff8f8301
...
@@ -25,3 +25,19 @@ is_girar_name()
...
@@ -25,3 +25,19 @@ is_girar_name()
{
{
echo
"
$1
"
|
grep
-q
"^git
\.
"
echo
"
$1
"
|
grep
-q
"^git
\.
"
}
}
_list_git_package
()
{
while
[
-n
"
$1
"
]
;
do
printf
"%50s "
$GIRARHOST
:
$1
shift
date
-d
@
$1
shift
done
}
# TODO: make world better, please
list_git_package
()
{
_list_git_package
$(
ssh
$GIRARHOST
find-package
$1
)
}
share/eterbuild/functions/repl
View file @
ff8f8301
...
@@ -43,6 +43,7 @@ clean_pkgreq()
...
@@ -43,6 +43,7 @@ clean_pkgreq()
local
i VAR
local
i VAR
VAR
=
`
cat
`
VAR
=
`
cat
`
for
i
in
$VAR
;
do
for
i
in
$VAR
;
do
echo
"
$i
"
| egrep
"gcc|cpp|gcc-c++"
>
/dev/null
&&
continue
echo
"
$i
"
|
grep
"[()<=>]"
>
/dev/null
&&
continue
echo
"
$i
"
|
grep
"[()<=>]"
>
/dev/null
&&
continue
echo
"
$i
"
|
grep
"^ *[0-9]
\.
[0-9]"
>
/dev/null
&&
continue
echo
"
$i
"
|
grep
"^ *[0-9]
\.
[0-9]"
>
/dev/null
&&
continue
echo
-n
"
$i
"
echo
-n
"
$i
"
...
@@ -52,13 +53,13 @@ clean_pkgreq()
...
@@ -52,13 +53,13 @@ clean_pkgreq()
# Print list of all build requires in ALT notation
# Print list of all build requires in ALT notation
print_buildreq
()
print_buildreq
()
{
{
eval_spec
${
1
}
|
grep
"Build.*Req"
|
sed
-e
"s|^.*:||g"
| clean_pkgreq
eval_spec
${
1
}
|
grep
"
^
Build.*Req"
|
sed
-e
"s|^.*:||g"
| clean_pkgreq
}
}
# Print list of all pkg requires
# Print list of all pkg requires
print_pkgreq
()
print_pkgreq
()
{
{
eval_spec
${
1
}
|
grep
"Requires"
|
sed
-e
"s|^.*:||g"
| clean_pkgreq
eval_spec
${
1
}
|
grep
"
^
Requires"
|
sed
-e
"s|^.*:||g"
| clean_pkgreq
}
}
# internal
# internal
...
...
share/eterbuild/functions/rpm
View file @
ff8f8301
...
@@ -63,6 +63,12 @@ build_rpms_name()
...
@@ -63,6 +63,12 @@ build_rpms_name()
build_buildroot
build_buildroot
}
}
# pkg-source-1.0.src.rpm -> pkg-source
get_pkgname_from_filename
()
{
echo
${
1
/-[0-9]*/
}
}
# build binary package list (1st - repo dir, 2st - pkgname)
# build binary package list (1st - repo dir, 2st - pkgname)
# algorithm: list all files in PKGDIR, print packages with our source pkg name
# algorithm: list all files in PKGDIR, print packages with our source pkg name
...
...
share/eterbuild/grprepl/grprepl.alt.4.0
0 → 100644
View file @
ff8f8301
Development/Tools|Development/Other
share/eterbuild/pkgrepl/pkgrepl.mdv
View file @
ff8f8301
...
@@ -78,7 +78,9 @@ xorg-xextproto-devel|x11-proto-devel
...
@@ -78,7 +78,9 @@ xorg-xextproto-devel|x11-proto-devel
xorg-sdk|x11-server-devel
xorg-sdk|x11-server-devel
libICE-devel|libice6-devel
libICE-devel|libice6-devel
libarts-devel|lib
kdemultimedia1-arts
-devel
libarts-devel|lib
arts1
-devel
libopensc-devel|libopensc-devel
libopensc-devel|libopensc-devel
wxGTK-devel|libwxgtk2.8-devel
wxGTK-devel|libwxgtk2.8-devel
netcat|netcat
netcat|netcat
libgtkmm2-devel|libgtkmm2.4-devel
libopenal-devel|libopenal-devel
\ No newline at end of file
share/eterbuild/pkgrepl/pkgrepl.mdv.2009.x86_64
View file @
ff8f8301
...
@@ -2,3 +2,4 @@
...
@@ -2,3 +2,4 @@
libXext-devel|lib64xext6-devel
libXext-devel|lib64xext6-devel
libreadline-devel|lib64readline-devel
libreadline-devel|lib64readline-devel
libreadline|lib64readline6
libreadline|lib64readline6
libgtkmm2-devel|lib64gtkmm2.4-devel
share/eterbuild/pkgrepl/pkgrepl.mdv.x86_64
View file @
ff8f8301
# Mandriva 64bit base replacements rules
# Mandriva 64bit base replacements rules
libXext-devel|lib64xext6-devel
libXext-devel|lib64xext6-devel
libreadline-devel|lib64readline
5
-devel
libreadline-devel|lib64readline-devel
libreadline|lib64readline5
libreadline|lib64readline5
libgtkmm2-devel|lib64gtkmm2.4-devel
libfreetype-devel|lib64freetype6-devel
libsane-devel|lib64sane1-devel
libieee1284-devel|lib64ieee1284-devel
libldap-devel|lib64ldap2.4_2-devel
libncurses-devel|lib64ncurses-devel
libncursesw-devel|lib64ncursesw-devel
libssl-devel|lib64openssl0.9.8-devel
libxslt-devel|lib64xslt-devel
xorg-x11-proto-devel|lib64xorg-x11-devel
libcups-devel|lib64cups2-devel
jackit-devel|lib64jack-devel
libGLU-devel|lib64mesaglu1-devel
libhal-devel|lib64hal-devel
libXScrnSaver-devel|lib64xscrnsaver1-devel
libfontenc-devel|lib64fontenc1-devel
libXv-devel|lib64xv1-devel
\ No newline at end of file
tests/get_packagename.sh
0 → 100755
View file @
ff8f8301
#!/bin/sh
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod spec rpm
check
()
{
[
"
$2
"
!=
"
$3
"
]
&&
echo
"FATAL with '
$1
': result '
$2
' do not match with '
$3
'"
||
echo
"OK for '
$1
' with '
$2
'"
}
check_pkg
()
{
check
"
$1
"
$(
get_pkgname_from_filename
"
$1
"
)
"
$2
"
}
check_pkg pkg-1.0.spec pkg
check_pkg pkg-source-1.0.spec pkg-source
check_pkg pkg-source-less-1.0.spec pkg-source-less
check_pkg pkg123-1.0.spec pkg123
tests/print_repo.sh
0 → 100755
View file @
ff8f8301
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod git
list_git_package libmathgl
tools/check_publish.sh
View file @
ff8f8301
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
# load common functions, compatible with local and installed script
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod git
get_wd
()
get_wd
()
{
{
...
@@ -28,6 +29,20 @@ print_usedby()
...
@@ -28,6 +29,20 @@ print_usedby()
done
done
}
}
if_file_empty
()
{
NL
=
$(
grep
-v
"^
\$
"
"
$1
"
|
wc
-l
)
test
"
$NL
"
-eq
"0"
}
remove_if_empty
()
{
if
if_file_empty
"
$1
"
;
then
rm
-f
"
$1
"
fi
}
[
-n
"
$SPECLIST
"
]
||
SPECLIST
=
`
find
$RPMDIR
/SPECS
-type
f
-name
"*.spec"
`
[
-n
"
$SPECLIST
"
]
||
SPECLIST
=
`
find
$RPMDIR
/SPECS
-type
f
-name
"*.spec"
`
...
@@ -53,14 +68,27 @@ for i in $SPECLIST ; do
...
@@ -53,14 +68,27 @@ for i in $SPECLIST ; do
rpmbugs
-t
$i
|
grep
-v
"CLO.*FIX"
|
grep
"@altlinux"
>
$i
.bugs
rpmbugs
-t
$i
|
grep
-v
"CLO.*FIX"
|
grep
"@altlinux"
>
$i
.bugs
test
-s
$i
.bugs
||
rm
-f
$i
.bugs
test
-s
$i
.bugs
||
rm
-f
$i
.bugs
if
rpmgp
-c
$i
|
grep
-q
MISSED
;
then
# if missed on ftp
rpmgp
-c
$i
>
$i
.missed
rpmgp
-c
$i
|
grep
-q
MISSED
>
$i
.missed
else
remove_if_empty
$i
.missed
rm
-f
$i
.
$missed
list_git_package
$PKGNAME
>
$i
.GIT.PUBLISHED
# if present in git
if
[
-n
"
$GIRAR_USER
"
]
;
then
GITURL
=
"http://git.altlinux.org/people/
$GIRAR_USER
/packages/
$PKGNAME
.git"
if
GET
-d
$GITURL
;
then
echo
echog
"Published at
$GITURL
by
$GIRAR_USER
"
>>
$i
.GIT.PUBLISHED
echog
"Please check this spec and move work to git"
>>
$i
.GIT.PUBLISHED
fi
fi
remove_if_empty
$i
.GIT.PUBLISHED
if
[
-r
"
$i
.GIT.PUBLISHED"
]
;
then
ssh
$GIRARHOST
acl sisyphus
$PKGNAME
show 2>>
$i
.GIT.PUBLISHED
fi
fi
# TODO:
#ssh git.alt acl sisyphus $PKGNAME show > $i.acl
#grep " $USER\$" $i.acl
#grep " $USER\$" $i.acl
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