зеркало из https://github.com/mozilla/gecko-dev.git
do not erase source tarball
This commit is contained in:
Родитель
5af95a8a33
Коммит
c72962f029
|
@ -86,7 +86,7 @@ SVRCORE_TAG=SVRCORE_4_0_2_RTM
|
||||||
SVRCORE_CORECONF_TAG=$SVRCORE_TAG
|
SVRCORE_CORECONF_TAG=$SVRCORE_TAG
|
||||||
PRJ=${PACKAGE}-${VERSION}
|
PRJ=${PACKAGE}-${VERSION}
|
||||||
RPM_HOME=`pwd`
|
RPM_HOME=`pwd`
|
||||||
SPEC_FILENAME=svrcore-devel.spec
|
SPEC_FILENAME=${PACKAGE}.spec
|
||||||
|
|
||||||
# define subroutines for this script
|
# define subroutines for this script
|
||||||
usage() {
|
usage() {
|
||||||
|
@ -133,9 +133,6 @@ mkdirs BUILD
|
||||||
if [ ! -d ${RPM_HOME}/RPMS ]; then
|
if [ ! -d ${RPM_HOME}/RPMS ]; then
|
||||||
mkdirs ${RPM_HOME}/RPMS
|
mkdirs ${RPM_HOME}/RPMS
|
||||||
fi
|
fi
|
||||||
if [ ! -d ${RPM_HOME}/SGTARS ]; then
|
|
||||||
mkdirs ${RPM_HOME}/SGTARS
|
|
||||||
fi
|
|
||||||
mkdirs SOURCES SPECS
|
mkdirs SOURCES SPECS
|
||||||
if [ ! -d ${RPM_HOME}/SRPMS ]; then
|
if [ ! -d ${RPM_HOME}/SRPMS ]; then
|
||||||
mkdirs ${RPM_HOME}/SRPMS
|
mkdirs ${RPM_HOME}/SRPMS
|
||||||
|
@ -168,9 +165,9 @@ cp ${SPEC_FILENAME} SPECS/${SPEC_FILENAME}
|
||||||
# build the ${BITSIZE} RPM and Source RPM
|
# build the ${BITSIZE} RPM and Source RPM
|
||||||
echo "Executing ${BITSIZE} rpmbuild of ${SPEC_FILENAME} file . . . "
|
echo "Executing ${BITSIZE} rpmbuild of ${SPEC_FILENAME} file . . . "
|
||||||
if [ ! -f SRPMS/${PACKAGE}-${VERSION}-${RELEASE}.src.rpm ]; then
|
if [ ! -f SRPMS/${PACKAGE}-${VERSION}-${RELEASE}.src.rpm ]; then
|
||||||
rpmbuild --define="_topdir ${RPM_HOME}" --target ${PLATFORM} -ba --clean --rmsource --rmspec SPECS/${SPEC_FILENAME}
|
rpmbuild --define="_topdir ${RPM_HOME}" --target ${PLATFORM} -ba --clean --rmspec SPECS/${SPEC_FILENAME}
|
||||||
else
|
else
|
||||||
rpmbuild --define="_topdir ${RPM_HOME}" --target ${PLATFORM} -bb --clean --rmsource --rmspec SPECS/${SPEC_FILENAME}
|
rpmbuild --define="_topdir ${RPM_HOME}" --target ${PLATFORM} -bb --clean --rmspec SPECS/${SPEC_FILENAME}
|
||||||
fi
|
fi
|
||||||
echo "Finished doing ${BITSIZE} rpmbuild of ${SPEC_FILENAME} file."
|
echo "Finished doing ${BITSIZE} rpmbuild of ${SPEC_FILENAME} file."
|
||||||
|
|
||||||
|
@ -180,11 +177,11 @@ if [ -d ${RPM_HOME}/BUILD ]; then
|
||||||
fi
|
fi
|
||||||
echo "Finished."
|
echo "Finished."
|
||||||
|
|
||||||
echo "Removing SOURCES directory . . ."
|
#echo "Removing SOURCES directory . . ."
|
||||||
if [ -d ${RPM_HOME}/SOURCES ]; then
|
#if [ -d ${RPM_HOME}/SOURCES ]; then
|
||||||
rm -rf ${RPM_HOME}/SOURCES
|
# rm -rf ${RPM_HOME}/SOURCES
|
||||||
fi
|
#fi
|
||||||
echo "Finished."
|
#echo "Finished."
|
||||||
|
|
||||||
echo "Removing SPECS directory . . ."
|
echo "Removing SPECS directory . . ."
|
||||||
if [ -d ${RPM_HOME}/SPECS ]; then
|
if [ -d ${RPM_HOME}/SPECS ]; then
|
||||||
|
|
Загрузка…
Ссылка в новой задаче