feature angle defaults to 20deg now
[engrid.git] / src / scripts / generate_dependency_list.sh
bloba9b5709cd3ff7ff53356df5b88b0f17b71b7f63c
1 #!/bin/bash
2 #
3 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 # + +
5 # + This file is part of enGrid. +
6 # + +
7 # + Copyright 2008-2013 enGits GmbH +
8 # + +
9 # + enGrid is free software: you can redistribute it and/or modify +
10 # + it under the terms of the GNU General Public License as published by +
11 # + the Free Software Foundation, either version 3 of the License, or +
12 # + (at your option) any later version. +
13 # + +
14 # + enGrid is distributed in the hope that it will be useful, +
15 # + but WITHOUT ANY WARRANTY; without even the implied warranty of +
16 # + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
17 # + GNU General Public License for more details. +
18 # + +
19 # + You should have received a copy of the GNU General Public License +
20 # + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
21 # + +
22 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24 set -ux
26 # Check if all parameters are present
27 # If no, exit
28 if [ $# -ne 4 ]
29 then
30 echo "usage :"
31 echo "`basename $0` INPUT OUTPUT INSTALL UNINSTALL"
32 exit 0
35 INPUT=$1
36 OUTPUT=$2
37 INSTALL=$3
38 UNINSTALL=$4
40 grep DLL $1 > $OUTPUT
41 sed -i '/windows/d' $OUTPUT
42 sed -i '/Warning/d' $OUTPUT
43 sed -i '/KnownDLLs/d' $OUTPUT
44 sed -i '/IESHIMS\.DLL/d' $OUTPUT
45 sed -i '/WER\.DLL/d' $OUTPUT
46 sed -i 's/DLL\(.*\)$/DLL/g' $OUTPUT
47 sed -i 's/\[.*\]//g' $OUTPUT
48 sed -i 's/^ *//g' $OUTPUT
50 ~/bin/remove_duplicates.pl $OUTPUT
51 OUTPUT_2=no_dupes_$OUTPUT
52 sort $OUTPUT_2 > $OUTPUT
54 cp $OUTPUT $INSTALL
55 sed -i 's/c:\\qt\\2009\.03\\mingw\\bin/${MINGWBINDIR}/g' $INSTALL
56 sed -i 's/c:\\qt\\2009\.03\\qt\\bin/${QTBINDIR}/g' $INSTALL
57 sed -i 's/c:\\qwt-5\.3\.0-svn\\lib/${QWTLIBDIR}/g' $INSTALL
58 sed -i 's/c:\\qwtplot3d\\lib/${QWTPLOT3DLIBDIR}/g' $INSTALL
59 sed -i 's/c:\\vtk-5\.4\.2-install\\bin/${VTKBINDIR}/g' $INSTALL
60 sed -i 's/c:\\libraries\\vtk-5\.4\.2-install\\bin/${VTKBINDIR}/g' $INSTALL
62 sed -i 's/^/ File "/' $INSTALL
63 sed -i 's/$/"/' $INSTALL
65 cp $OUTPUT $UNINSTALL
66 sed -i 's/.*\\\([^\\]*\)\.DLL/\1.DLL/g' $UNINSTALL
67 sed -i 's/^/ Delete "$INSTDIR\\/' $UNINSTALL
68 sed -i 's/$/"/' $UNINSTALL
70 echo "=== OUTPUT ==="
71 cat $OUTPUT
73 echo "=== INSTALL ==="
74 cat $INSTALL
76 echo "=== UNINSTALL ==="
77 cat $UNINSTALL