This commit is contained in:
parent
736420f6b1
commit
8aef7b8886
1 changed files with 4 additions and 2 deletions
6
run.sh
6
run.sh
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
set -euxo pipefail
|
||||
|
||||
built_dir=${COMPILED_DIR:-/compiled}/polycat
|
||||
version=$(cat $built_dir/version)
|
||||
|
@ -27,6 +27,8 @@ sed -i "s/RPM_PACKAGER_EMAIL/$RPM_PACKAGER_EMAIL/g" polycat.spec
|
|||
rpmbuild -bb polycat.spec
|
||||
mv ~/rpmbuild/RPMS/x86_64/polycat-$version-* $repo_dir/
|
||||
|
||||
ls ~/rpmbuild/RPMS/x86_64/
|
||||
exit
|
||||
# remove old versions
|
||||
cd $repo_dir
|
||||
# this is the easiest way to make sure it doesn't just fail because no polycat-* exists
|
||||
|
@ -38,4 +40,4 @@ rm polycat-tmp.rpm
|
|||
# update repo
|
||||
createrepo_c .
|
||||
|
||||
echo "package is at $repo_dir/$(ls polycat-*.rpm)"
|
||||
echo "package is at $repo_dir/$(ls $repo_dir/polycat-*.rpm)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue