mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-10 03:54:54 -06:00
Change copied upp.spec on the fly to be able to compile upp snapshots with just one command: "rpmbuild --rebuild snapshot-tarball"
git-svn-id: svn://ultimatepp.org/upp/trunk@10603 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
afb335d1b8
commit
fcb17a5a8a
1 changed files with 8 additions and 3 deletions
|
|
@ -32,8 +32,13 @@ cp ~/Scripts/fedora ~/upp.tmp/upp
|
|||
cp ~/Scripts/GCCMK.bm ~/upp.tmp/upp/GCC.bm.in
|
||||
cp ~/Scripts/CLANGMK.bm ~/upp.tmp/upp/CLANG.bm.in
|
||||
|
||||
svn_snapshot_version=$(svnversion ~/upp.src)
|
||||
current_date=$(LC_TIME=En date '+%a %b %d %Y')
|
||||
|
||||
sed -i -e 's|%version|'$svn_snapshot_version'|g' -e 's|%date|'$current_date'|g' ~/upp.tmp/upp/upp.spec
|
||||
|
||||
cd ~/upp.tmp
|
||||
mv upp upp-x11-src-`svnversion ~/upp.src`
|
||||
tar -cvvzf ~/upload/upp-x11-src-`svnversion ~/upp.src`.tar.gz upp-x11-src-`svnversion ~/upp.src`
|
||||
#mv upp-x11-src-`svnversion ~/upp.src` upp
|
||||
mv upp upp-x11-src-$svn_snapshot_version
|
||||
tar -cvvzf ~/upload/upp-x11-src-$svn_snapshot_version.tar.gz upp-x11-src-$svn_snapshot_version
|
||||
#mv upp-x11-src-$svn_snapshot_version upp
|
||||
#~/bin/upload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue