Last change
on this file since 7305d5 was c015b3, checked in by Frederik Heber <heber@…>, 13 years ago |
Added enable-switches for Qt-based GUI and python module and scripts.
- note that encapsulation in AS_IF is absolutely required as otherwise
lateron checks will produce strange errors as required checks reside
in an unseen if ..; then branch, initiated by AC_PROG() ... or other
contained macros.
- Added AM_CONDITIIONAL's to modify Makefile.ams depending on above enable
switches.
- AM_COND_IF controls whether certain Makefile's are produced or not.
- moved Python regression tests into own folder to control whether they
are executed or not.
- molecuildergui and libMolecuilderQtUI are only compiled with qtgui
enabled.
- same for pyMoleCuilder and its scripts only when python enabled.
|
-
Property mode
set to
100755
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ -z $1 ]; then
|
---|
4 | echo "Usage: $0 <output file>"
|
---|
5 | exit 1
|
---|
6 | fi
|
---|
7 |
|
---|
8 | OUTPUT=$1
|
---|
9 |
|
---|
10 | rm -f $OUTPUT.temp
|
---|
11 |
|
---|
12 | liste=(`cat <missing_sorted.dat`)
|
---|
13 |
|
---|
14 | check=()
|
---|
15 | i=0
|
---|
16 | while [ $i -lt ${#liste[*]} ]; do
|
---|
17 | check[$i]=0
|
---|
18 | ((i+=1))
|
---|
19 | done
|
---|
20 |
|
---|
21 | OLDIFS=$IFS
|
---|
22 | IFS='
|
---|
23 | '
|
---|
24 | for line in `find . -name '*.at' -exec grep molecuilder {} \;`; do
|
---|
25 | call=`echo $line | awk -F"/molecuilder" '{print $2}' | awk -F"]" '{print $1}'`
|
---|
26 | #echo "call is $call"
|
---|
27 | i=0
|
---|
28 | while [ $i -lt ${#liste[*]} ]; do
|
---|
29 | #echo "Looking for ${liste[$i]} ..."
|
---|
30 | if [ ! -z `echo $call | grep ${liste[$i]}` ]; then
|
---|
31 | opts=`echo $call | awk -F"--${liste[$i]} " {'print $2'}`
|
---|
32 | if [ ! -z $opts ]; then
|
---|
33 | echo "opts is $opts"
|
---|
34 | value=`echo $opts | awk -F" -" {'print $1'} | awk -F"]" '{print $1}' | awk -F"--" {'print $1'}`
|
---|
35 | value2=`echo $value | awk -F"\"" '{print $2}'`
|
---|
36 | if [ ! -z $value2 ]; then
|
---|
37 | value=$value2
|
---|
38 | fi
|
---|
39 | if [ -z $value ]; then
|
---|
40 | echo "Found an option ${liste[$i]} with no value."
|
---|
41 | echo -e "${liste[$i]}\t\"\"" >>$OUTPUT.temp
|
---|
42 | else
|
---|
43 | echo "Found an option ${liste[$i]} with value $value."
|
---|
44 | echo -e "${liste[$i]}\t\"$value\"" >>$OUTPUT.temp
|
---|
45 | fi
|
---|
46 | check[$i]=1
|
---|
47 | fi
|
---|
48 | fi
|
---|
49 | ((i+=1))
|
---|
50 | done
|
---|
51 | done
|
---|
52 | IFS=$OLDIFS
|
---|
53 |
|
---|
54 | # output empty defaults for values not found
|
---|
55 | i=0
|
---|
56 | while [ $i -lt ${#liste[*]} ]; do
|
---|
57 | if [ ${check[$i]} -eq 0 ]; then
|
---|
58 | echo -e "${liste[$i]}\t\"\"" >>$OUTPUT.temp
|
---|
59 | fi
|
---|
60 | ((i+=1))
|
---|
61 | done
|
---|
62 |
|
---|
63 | echo -e "#key\tvalue" >$OUTPUT
|
---|
64 | sort $OUTPUT.temp | uniq >>$OUTPUT
|
---|
65 |
|
---|
66 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.