mirror of
https://github.com/ivabus/asahi-opensuse
synced 2024-11-10 02:05:14 +03:00
23 lines
320 B
Bash
Executable file
23 lines
320 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
# This script clones & builds all RPMs that are used in repository.
|
|
|
|
# clean up
|
|
rm -rf ../repo
|
|
|
|
sh 01_build_kernel.sh
|
|
|
|
sh 02_build_rpms.sh
|
|
|
|
mkdir -p ../repo/{RPMS,SRPMS}
|
|
|
|
# RpmBuildDir
|
|
RBD=$(rpm --eval "%{_topdir}")
|
|
|
|
cp -rv $RBD/RPMS ../repo/
|
|
cp -rv $RBD/SRPMS ../repo/
|
|
|
|
cd ../repo
|
|
|
|
createrepo --xz .
|