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
aaff4cb2
Commit
aaff4cb2
authored
Aug 09, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add certreq scripts
parent
344baf89
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
98 additions
and
0 deletions
+98
-0
do_all_packages.sh
tools/certreq/do_all_packages.sh
+6
-0
do_all_work.sh
tools/certreq/do_all_work.sh
+23
-0
do_all_work_next.sh
tools/certreq/do_all_work_next.sh
+28
-0
get_build_reqs.sh
tools/certreq/get_build_reqs.sh
+6
-0
get_pkg_paths.sh
tools/certreq/get_pkg_paths.sh
+11
-0
get_srcpkg.sh
tools/certreq/get_srcpkg.sh
+5
-0
list_only_missed.sh
tools/certreq/list_only_missed.sh
+12
-0
path_to_list.sh
tools/certreq/path_to_list.sh
+7
-0
No files found.
tools/certreq/do_all_packages.sh
0 → 100755
View file @
aaff4cb2
#!/bin/sh
for
i
in
nx rxclient rx-etersoft
;
do
./do_all_work.sh
$i
./do_all_work_next.sh
$i
done
tools/certreq/do_all_work.sh
0 → 100755
View file @
aaff4cb2
#!/bin/sh
BNAME
=
"
$1
"
[
-n
"
$BNAME
"
]
||
BNAME
=
rxclient
#HASHERLOG=/home/lav/RPM/log/rxclient-0.18-alt1.M70C.6-M70C.log
HASHERLOG
=
/home/lav/RPM/log/
$BNAME
*
.log
[
-s
"
$(
echo
$HASHERLOG
)
"
]
||
exit
1
echo
"Work with
$HASHERLOG
"
# список зависимостей, использованных при сборке
./get_build_reqs.sh
$HASHERLOG
>
$BNAME
.list
# получает пути к файлам пакетов
./get_pkg_paths.sh
$BNAME
.list
>
$BNAME
.paths
# получает список файлов пакетов (как на диске)
./path_to_list.sh
$BNAME
.paths
>
$BNAME
.files
# сохраняет список дополнительных пакетов, использованных при сборке
./list_only_missed.sh
$BNAME
.files
>
$BNAME
.additions
tools/certreq/do_all_work_next.sh
0 → 100755
View file @
aaff4cb2
#!/bin/sh
BNAME
=
"
$1
"
[
-n
"
$BNAME
"
]
||
BNAME
=
rxclient
LOCALPATH
=
/var/ftp/pub/ALTLinux/c7/branch
URLREPO
=
http://ftp.basealt.ru/pub/distributions/ALTLinux/c7/branch
rm
-f
$BNAME
.bin.list
rm
-f
$BNAME
.src.list
rm
-f
$BNAME
.src.list.tmp
rm
-f
$BNAME
.common.list
rm
-f
$BNAME
.common.url.list
# список путей найденных пакетов
for
i
in
$(
cat
$BNAME
.additions
)
;
do
FPATH
=
$(
grep
/
$i
$BNAME
.paths
)
URLPATH
=
$(
echo
$FPATH
|
sed
-e
"s|
$LOCALPATH
|
$URLREPO
|"
)
SFPATH
=
$URLREPO
/files/SRPMS/
$(
epm print srcpkgname from filename
$FPATH
)
#wget $URLREPO -O $(basename $SFPATH)
echo
$URLPATH
>>
$BNAME
.bin.list
echo
$SFPATH
>>
$BNAME
.src.list.tmp
echo
$(
basename
$FPATH
)
$(
basename
$SFPATH
)
>>
$BNAME
.common.list
echo
$URLPATH
$SFPATH
>>
$BNAME
.common.url.list
done
cat
$BNAME
.src.list.tmp |
sort
-u
>
$BNAME
.src.list
rm
-f
$BNAME
.src.list.tmp
tools/certreq/get_build_reqs.sh
0 → 100755
View file @
aaff4cb2
#!/bin/sh
HASHERLOG
=
"
$1
"
[
-n
"
$HASHERLOG
"
]
||
HASHERLOG
=
/home/lav/RPM/log/rxclient-0.18-alt1.M70C.6-M70C.log
# last [0-9\:* - remove epoch
grep
"rpmi.*installed"
$HASHERLOG
|
sed
-e
"s|.*rpmi: ||"
-e
"s| installed.*||"
-e
"s|[0-9]*:||"
tools/certreq/get_pkg_paths.sh
0 → 100755
View file @
aaff4cb2
#!/bin/sh
LIST
=
"
$1
"
[
-n
"
$LIST
"
]
||
LIST
=
list
REPO
=
"/var/ftp/pub/ALTLinux/c7/branch/*/RPMS.classic"
for
i
in
$(
cat
$LIST
)
;
do
# print found files
ls
-1
$REPO
/
${
i
}*
.rpm
&&
continue
echo
"
$i
"
>>
$LIST
.missed
done
|
grep
-v
"/i586/"
tools/certreq/get_srcpkg.sh
0 → 100755
View file @
aaff4cb2
#!/bin/sh
for
i
in
$(
cat
)
;
do
epm print srcpkgname from filename
$i
</dev/null
done
tools/certreq/list_only_missed.sh
0 → 100755
View file @
aaff4cb2
#!/bin/sh
LIST
=
"
$1
"
[
-n
"
$LIST
"
]
||
LIST
=
pkgs.list
for
i
in
$(
cat
$LIST
)
;
do
pkg
=
$(
echo
$i
|
sed
-e
"s|alt.*|alt|"
)
grep
-q
--
$pkg
c7-disk.list
&&
continue
#grep $pkg pkgs.list
#grep $pkg $LIST
echo
"
$i
"
done
tools/certreq/path_to_list.sh
0 → 100755
View file @
aaff4cb2
#!/bin/sh
LIST
=
"
$1
"
[
-n
"
$LIST
"
]
||
LIST
=
paths.txt
cat
$LIST
|
sed
-e
"s|.*/||"
|
sort
-u
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