Skip to content

Commit

Permalink
Only download source if needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jan 22, 2014
1 parent e7c4275 commit bb3b5b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildxc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
XCVERSION=1.1

grep -i Requires: SPECS/postgresxc-$XCVERSION.spec | awk '{print $2}' | uniq | grep -v '{name}' | xargs sudo yum install -y || exit ?
spectool -S -C SOURCES -g SPECS/postgresxc-$XCVERSION.spec || exit $?
if [ ! -e "SOURCES/pgxc-v$XCVERSION.tar.gz" ]; then
spectool -S -C SOURCES -g SPECS/postgresxc-$XCVERSION.spec || exit $?
fi
rpmbuild -ba --define "_topdir `pwd`" SPECS/postgresxc-$XCVERSION.spec || exit $?

0 comments on commit bb3b5b1

Please sign in to comment.