Update soundtest
[grml-scripts.git] / usr_bin / findchanged
1 #!/bin/sh
2 # Filename:      findchanged
3 # Purpose:       find changes in (real) files of dir1 ... dir2
4 # Authors:       grml-team (grml.org), (c) Klaus Knopper, (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 # Latest change: Thu Oct 13 12:21:03 CEST 2005 [mika]
8 ################################################################################
9
10   if [ -d "$1" ]; then
11     for i in `( cd "$1"; find . -type f 2>/dev/null | sed 's,^\./,,g' | grep -v ' ' )`; do
12       cmp -s "$1/$i" "$2/$i" || echo "$1/$i"
13     done
14   elif [ -e "$1" ]; then
15     cmp -s "$1" "$2" || echo "$1"
16   fi
17
18 ## END OF FILE #################################################################