+_update_autoqa_file()
+{
+ SELF="$ROOT/auto-qa"
+ SELF_UPDATE="cmd/xfstests/tools/auto-qa"
+ if [ $CVS = false ]; then
+ cmd="p_tupdate $SELF_UPDATE"
+ else
+ cmd="cvs -z3 update $SELF_UPDATE"
+ fi
+ exec $SH -c "cd $WORKAREA ; eval $cmd; chmod +x $SELF_UPDATE ; exec $SELF"
+}
+
+_update_workarea()
+{
+ if [ $CVS = false ]; then
+ _log " *** p_tupdate"
+ cd $WORKAREA
+ p_tupdate 2>&1 \
+ || _fail " !!! p_tupdate failed"
+
+ _log " *** p_check/p_purge"
+ cd $WORKAREA
+ p_check -s | p_purge -yiu 2>&1 \
+ || _fail " !!! p_check/p_purge failed"
+
+ _log " *** non-trunk files"
+ cd $WORKAREA
+ p_list -c 2>&1 \
+ || _fail " !!! p_list failed"
+ else
+ _log " *** cvs update"
+ cd $WORKAREA
+ cvs -z3 update -d
+ fi
+}
+
+