2107 case "$scm_type" in
2108 none|subversion|teamware|mercurial)
2109 ;;
2110 *) scm_type=none
2111 ;;
2112 esac
2113
2114 echo $scm_type
2115 }
2116
2117 # Echo the SCM types of $CODEMGR_WS and $BRINGOVER_WS
2118 function child_wstype {
2119 typeset scm_type junk
2120
2121 # Probe CODEMGR_WS to determine its type
2122 if [[ -d $CODEMGR_WS ]]; then
2123 $WHICH_SCM | read scm_type junk || exit 1
2124 fi
2125
2126 case "$scm_type" in
2127 none|subversion|teamware|mercurial)
2128 ;;
2129 *) scm_type=none
2130 ;;
2131 esac
2132
2133 echo $scm_type
2134 }
2135
2136 SCM_TYPE=$(child_wstype)
2137
2138 #
2139 # Decide whether to clobber
2140 #
2141 if [ "$i_FLAG" = "n" -a -d "$SRC" ]; then
2142 echo "\n==== Make clobber at `date` ====\n" >> $LOGFILE
2143
2144 cd $SRC
2145 # remove old clobber file
2146 rm -f $SRC/clobber.out
2147 rm -f $SRC/clobber-${MACH}.out
|
2107 case "$scm_type" in
2108 none|subversion|teamware|mercurial)
2109 ;;
2110 *) scm_type=none
2111 ;;
2112 esac
2113
2114 echo $scm_type
2115 }
2116
2117 # Echo the SCM types of $CODEMGR_WS and $BRINGOVER_WS
2118 function child_wstype {
2119 typeset scm_type junk
2120
2121 # Probe CODEMGR_WS to determine its type
2122 if [[ -d $CODEMGR_WS ]]; then
2123 $WHICH_SCM | read scm_type junk || exit 1
2124 fi
2125
2126 case "$scm_type" in
2127 none|subversion|git|teamware|mercurial)
2128 ;;
2129 *) scm_type=none
2130 ;;
2131 esac
2132
2133 echo $scm_type
2134 }
2135
2136 SCM_TYPE=$(child_wstype)
2137
2138 #
2139 # Decide whether to clobber
2140 #
2141 if [ "$i_FLAG" = "n" -a -d "$SRC" ]; then
2142 echo "\n==== Make clobber at `date` ====\n" >> $LOGFILE
2143
2144 cd $SRC
2145 # remove old clobber file
2146 rm -f $SRC/clobber.out
2147 rm -f $SRC/clobber-${MACH}.out
|