Commit aaff4cb2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add certreq scripts

parent 344baf89
#!/bin/sh
for i in nx rxclient rx-etersoft ; do
./do_all_work.sh $i
./do_all_work_next.sh $i
done
#!/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
#!/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
#!/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]*:||"
#!/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/"
#!/bin/sh
for i in $(cat) ; do
epm print srcpkgname from filename $i </dev/null
done
#!/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
#!/bin/sh
LIST="$1"
[ -n "$LIST" ] || LIST=paths.txt
cat $LIST | sed -e "s|.*/||" | sort -u
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment