tbootstrap/tbootstrap.sh

27 lines
455 B
Bash
Executable file

#!/bin/bash
filelist=`cat tbootstrap/stage0.txt`
function install()
{
for pkgname in $filelist; do
rpm --nodeps -i $pkgname/RPMS/x86_64/*.rpm --root=/root/newroot
done
}
function fetch()
{
for pkgname in $filelist; do
mkdir $pkgname
git clone git@gitlab.tlnx.ru:rpms/$pkgname.git $pkgname
done
}
function build()
{
for pkgname in $filelist; do
tlnxbuild/tlnxbuild.sh $pkgname
done
}
fetch
build