# HG changeset patch # User Paul Boddie # Date 1591399378 -7200 # Node ID d9480ff7284a982815596e7d3418c27c7b48ab87 # Parent 367867780278da99df5e9134501d046c1b6e84da Added a tool to help detect and collect out-of-tree changes. diff -r 367867780278 -r d9480ff7284a tools/show_updated.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/show_updated.sh Sat Jun 06 01:22:58 2020 +0200 @@ -0,0 +1,18 @@ +#!/bin/sh + +THISDIR=`dirname "$0"` + +PACKAGE=${1:-"pkg/landfall-examples"} +BASEDIR=`realpath "$THISDIR/.."` + +for FILENAME in `find "$PACKAGE" -newer "$BASEDIR/$PACKAGE" -type f` ; do + if [ `basename "$FILENAME"` != `basename "$FILENAME" .orig` ] ; then + continue + fi + + if [ -e "$BASEDIR/$FILENAME" ] ; then + diff -u "$BASEDIR/$FILENAME" "$FILENAME" + else + diff -u /dev/null "$FILENAME" + fi +done