Source

bin / xds_update

#!/bin/bash

XDS_DIR="$HOME/xds"
XDS_SCRIPTS="$XDS_DIR/xds-scripts"
PREFIX="tips"

renice -n 1 -p $$
ionice -n 6 -p $$

time {
	cd "$XDS_SCRIPTS"
	git pull
	$XDS_SCRIPTS/build-all -h ~/xds -m -u -x xds "$@" "$PREFIX"
	pushd $XDS_DIR
	for d in "$PREFIX"*; do
		echo "cscope: $d"
		{
			xds "$d" <<- EOF
			$XDS_SCRIPTS/cscope_files | cscope -b -k -q -i-
			EOF
		} &> /dev/null &
	done
	wait
	popd
}

printf "\a\n"