#!/bin/sh # all commands must succeed: set -e # gcc-core and gcc-other shares the same src.rpm, except for "type" of build: # - gcc-core only creates gcc and cpp packages # - gcc-other only creates java, fortran, c++ packages # # since we can't pass a build option to iurt/youri, we must duplicate the # src.rpm, and also the package in SVN: svn rm SOURCES SPECS svn commit -m 'SILENT: remove prior to re-sync with gcc-core' SOURCES SPECS svn cp svn+ssh://svn.mandriva.com/svn/packages/cooker/gcc-core/current/SOURCES . svn cp svn+ssh://svn.mandriva.com/svn/packages/cooker/gcc-core/current/SPECS . svn commit -m 'SILENT: re-sync with gcc-core' SOURCES SPECS svn mv SPECS/gcc-core.spec SPECS/gcc-other.spec perl -pi -e '$ok ||= s/^%define type core$/%define type other/; END { exit($ok?0:1) }' SPECS/gcc-other.spec svn commit -m 'SILENT: re-sync with gcc-core' SPECS echo "you can now submit gcc-other"