3
# Copyright (C) 2010-2011 Peter de Ridder <peter@xfce.org>
5
# This library is free software; you can redistribute it and/or
6
# modify it under the terms of the GNU Lesser General Public
7
# License as published by the Free Software Foundation; either
8
# version 2.1 of the License, or (at your option) any later version.
10
# See the file COPYING for the full license text.
12
temp_file_new=`mktemp`
13
temp_file_old=`mktemp`
17
echo $1 >> $temp_file_new
21
while [ "x`sha1sum - < $temp_file_new`" != "x`sha1sum - < $temp_file_old`" ]
23
files=`cat $temp_file_new $temp_file_old | sort | uniq -u`
24
cp $temp_file_new $temp_file_old
25
strings $files 2> /dev/null | grep \\.dll | cat - $temp_file_old | sort | uniq > $temp_file_new
30
rm $temp_file_new $temp_file_old