~tuxator/midori/speeddial-refresh

« back to all changes in this revision

Viewing changes to win32/makedist/dll-recursive.sh

  • Committer: Christian Dywan
  • Author(s): Peter de Ridder
  • Date: 2011-04-26 23:42:47 UTC
  • Revision ID: git-v1:d36e12f21d297b6ca5bf0daa38b452fccdf318d8
Provide build scripts for win32 releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Copyright (C) 2010-2011 Peter de Ridder <peter@xfce.org>
 
4
#
 
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.
 
9
#
 
10
# See the file COPYING for the full license text.
 
11
 
 
12
temp_file_new=`mktemp`
 
13
temp_file_old=`mktemp`
 
14
 
 
15
while [ "$1" ]
 
16
do
 
17
  echo $1 >> $temp_file_new
 
18
  shift
 
19
done
 
20
 
 
21
while [ "x`sha1sum - < $temp_file_new`" != "x`sha1sum - < $temp_file_old`" ]
 
22
do
 
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
 
26
done
 
27
 
 
28
cat $temp_file_new
 
29
 
 
30
rm $temp_file_new $temp_file_old
 
31