mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 03:25:35 +00:00
15 lines
378 B
Plaintext
15 lines
378 B
Plaintext
exec >&2
|
|
dir=${1%/*}
|
|
pkg=${1##*/}
|
|
pkg=${pkg%.rpm}
|
|
redo-ifchange "$S/oss/version/short.txt" "$dir/$pkg.tar.gz" "$dir/$pkg.spec"
|
|
read -r pkgver junk <"$S/oss/version/short.txt"
|
|
|
|
machine=$(uname -m)
|
|
rpmbase=$HOME/rpmbuild
|
|
|
|
mkdir -p "$rpmbase/SOURCES/"
|
|
cp "$dir/$pkg.tar.gz" "$rpmbase/SOURCES/"
|
|
rpmbuild -bb "$dir/$pkg.spec"
|
|
mv "$rpmbase/RPMS/$machine/$pkg-$pkgver.$machine.rpm" $3
|