Commit cdad9995 authored by Holger Levsen's avatar Holger Levsen
Browse files

refactor: run code to show FIXMEs locally

parent 1919aa19
Loading
Loading
Loading
Loading
+23 −1
Original line number Diff line number Diff line
@@ -48,10 +48,31 @@ node_in_the_future () {
	esac
}

show_fixmes() {
	#
	# There's always some work left...
	#	echo FIXME is ignored so check-jobs scripts can output templates requiring manual work
	#
	BASEDIR="$(dirname "$(readlink -e $0)")"
	TMPFILE=$(mktemp)
	rgrep FI[X]ME $BASEDIR/* | grep -v $BASEDIR/TODO | grep -v echo > $TMPFILE || true
	if [ -s $TMPFILE ] ; then
		echo
		echo Existing FIXME statements:
		echo
		cat $TMPFILE
		echo
	fi
	rm -f $TMPFILE
}

echo
echo -n "$(date) - "
reset_clock=true
if [ "$1" = "all" ] ; then
if [ "$1" = "fixme" ] ; then
	show_fixmes
	exit 0
elif [ "$1" = "all" ] ; then
	echo -n "Running j.d.n.git updates on ${HOSTS[@]} now"
	# reset_clock can be false as update_jdn.sh sets the time
	reset_clock=false
@@ -244,6 +265,7 @@ if [ ! -z "$OFFLINE" ] ; then
	echo -e "$OFFLINE"
	echo
fi
show_fixmes
END=$(date +'%s')
DURATION=$(( $END - $START ))
HOUR=$(echo "$DURATION/3600"|bc)
+0 −15
Original line number Diff line number Diff line
@@ -783,21 +783,6 @@ EOF
	fi
fi

#
# There's always some work left...
#	echo FIXME is ignored so check-jobs scripts can output templates requiring manual work
#
if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "jenkins-test-vm" ] ; then
	TMPFILE=$(mktemp)
	rgrep FI[X]ME $BASEDIR/* | grep -v $BASEDIR/TODO | grep -v echo > $TMPFILE || true
	if [ -s $TMPFILE ] ; then
		echo
		cat $TMPFILE
		echo
	fi
	rm -f $TMPFILE
fi

#
# almost finally…
#