This commit is contained in:
parent
8aef7b8886
commit
71c208693a
1 changed files with 2 additions and 4 deletions
6
run.sh
6
run.sh
|
@ -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