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