Browse Source

Meta/Dothem: add '--clean' option

todo
Junio C Hamano 2 years ago
parent
commit
860bc4360c
  1. 13
      Dothem

13
Dothem

@ -18,11 +18,12 @@ inst_prefix=$(
) )


force= with_dash= test_long= M= install= doc= notest= bootstrap= branches= jobs= force= with_dash= test_long= M= install= doc= notest= bootstrap= branches= jobs=
scratch= noprove= memtrash=--memtrash with_cocci= san= scratch= noprove= memtrash=--memtrash with_cocci= san= clean=
while case "$1" in while case "$1" in
--pedantic | --locale=* | --loose) M="$M $1" ;; --pedantic | --locale=* | --loose) M="$M $1" ;;
--force) force=$1 ;; --force) force=$1 ;;
--dash) with_dash=y ;; --dash) with_dash=y ;;
--clean) clean=y ;;
--cocci) with_cocci=y ;; --cocci) with_cocci=y ;;
--no-cocci) with_cocci= ;; --no-cocci) with_cocci= ;;
--long) test_long=--long ;; --long) test_long=--long ;;
@ -192,13 +193,13 @@ do
cd "$BUILDBASE/$branch" cd "$BUILDBASE/$branch"
git reset --hard && git reset --hard &&


case "$scratch" in case "$scratch$clean" in
'') '')
;; ;;
y) *y*)
saveMeta=$(readlink Meta) saveMeta=$(readlink Meta)
Meta/Make distclean Meta/Make distclean
git clean -f -x git clean -f -x -d
ln -s "$saveMeta" Meta ln -s "$saveMeta" Meta
;; ;;
esac && esac &&
@ -211,6 +212,10 @@ do
git reset --hard || exit git reset --hard || exit
esac && esac &&


case "$clean" in
y) exit 0 ;;
esac &&

case "$private" in case "$private" in
'') '')
;; ;;

Loading…
Cancel
Save