mirror of
https://github.com/rasilon/ujetl.git
synced 2026-04-11 10:29:29 +00:00
12 lines
294 B
Bash
Executable file
12 lines
294 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
cd /root
|
|
cp -Rv build build2
|
|
cd build2
|
|
|
|
SPEC=$(ls *.spec)
|
|
VER=$(grep Version $SPEC | awk '{print $2}')
|
|
tar cvf $HOME/rpmbuild/SOURCES/uJETL-${VER}.tar.gz --show-transformed --transform="s/^\./uJETL-${VER}/" .
|
|
rpmbuild -ba $SPEC
|
|
cp /root/rpmbuild/RPMS/x86_64/* /root/build/
|