Sisyphus - support MOZ_CO_FLAGS, MOZ_CO_DATE bug 422481, r=rcampbell

This commit is contained in:
bclary@bclary.com 2008-03-13 12:26:43 -07:00
Родитель b32df236b2
Коммит b567b8c469
1 изменённых файлов: 47 добавлений и 20 удалений

Просмотреть файл

@ -50,42 +50,69 @@ fi
cd $TREE cd $TREE
case $product in case $product in
firefox|thunderbird) firefox)
if [[ ! ( -d mozilla && \ if [[ ! ( -d mozilla && \
-e mozilla/client.mk && \ -e mozilla/client.mk && \
-e "mozilla/$project/config/mozconfig" ) ]]; then -e "mozilla/$project/config/mozconfig" ) ]]; then
if ! eval cvs -z3 -q co $BRANCH_CO_FLAGS \ if ! eval cvs -z3 -q co $MOZ_CO_FLAGS $BRANCH_CO_FLAGS $DATE_CO_FLAGS \
mozilla/client.mk mozilla/$project/config/mozconfig; then mozilla/client.mk mozilla/$project/config/mozconfig; then
error "during checkout of mozconfig" $LINENO error "during checkout of $project mozconfig" $LINENO
fi fi
fi fi
cd mozilla cd mozilla
if ! make -f client.mk checkout 2>&1; then if ! make -f client.mk checkout 2>&1; then
error "during checkout of tree" $LINENO error "during checkout of $project tree" $LINENO
fi
;;
thunderbird)
if [[ ! ( -d mozilla && \
-e mozilla/client.mk && \
-e "mozilla/$project/config/mozconfig" ) ]]; then
if ! eval cvs -z3 -q co $MOZ_CO_FLAGS $BRANCH_CO_FLAGS $DATE_CO_FLAGS \
mozilla/client.mk mozilla/$project/config/mozconfig; then
error "during checkout of $MOZ_CO_FLAGS $BRANCH_CO_FLAGS $DATE_CO_FLAGS $project mozconfig" $LINENO
fi
fi
if [[ ! ( -d mozilla && \
-e mozilla/client.mk && \
-e "mozilla/browser/config/mozconfig" ) ]]; then
if ! eval cvs -z3 -q co $MOZ_CO_FLAGS $BRANCH_CO_FLAGS $DATE_CO_FLAGS \
mozilla/client.mk mozilla/browser/config/mozconfig; then
error "during checkout of $MOZ_CO_FLAGS $BRANCH_CO_FLAGS $DATE_CO_FLAGS browser mozconfig" $LINENO
fi
fi
cd mozilla
if ! make -f client.mk checkout 2>&1; then
error "during checkout of $project tree" $LINENO
fi fi
;; ;;
js) js)
if [[ ! ( -d mozilla && \ if [[ ! ( -d mozilla && \
-e mozilla/js && \ -e mozilla/js && \
-e mozilla/js/src ) ]]; then -e mozilla/js/src ) ]]; then
eval cvs -z3 -q co $BRANCH_CO_FLAGS $DATE_CO_FLAGS mozilla/js if ! eval cvs -z3 -q co $MOZ_CO_FLAGS $BRANCH_CO_FLAGS $DATE_CO_FLAGS mozilla/js; then
fi error "during initial co $MOZ_CO_FLAGS $BRANCH_CO_FLAGS $DATE_CO_FLAGS mozilla/js"
fi
fi
cd mozilla/js/src cd mozilla/js/src
if ! eval cvs -z3 -q update $BRANCH_CO_FLAGS $DATE_CO_FLAGS -d -P 2>&1; then if ! eval cvs -z3 -q update $MOZ_CO_FLAGS $BRANCH_CO_FLAGS $DATE_CO_FLAGS -d -P 2>&1; then
error "during checkout of js/src" $LINENO error "during update $MOZ_CO_FLAGS $BRANCH_CO_FLAGS $DATE_CO_FLAGS js/src" $LINENO
fi fi
if ! cvs -z3 -q update -d -P -A editline config 2>&1; then if ! cvs -z3 -q update -d -P -A editline config 2>&1; then
error "during checkout of js/src" $LINENO error "during checkout of js/src" $LINENO
fi fi
# end for js shell # end for js shell
;; ;;
*) *)
error "unknown product $product" $LINENO error "unknown product $product" $LINENO
;; ;;
esac esac