forked from lballabio/quantlib-old
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsync_csharp_projects.sh
More file actions
executable file
·50 lines (34 loc) · 1.29 KB
/
Copy pathsync_csharp_projects.sh
File metadata and controls
executable file
·50 lines (34 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# execute this script from the root of an uncompressed QuantLib-SWIG tarball
# get reference lists of distributed files (done with find; this is
# why this script should be run from an uncompressed tarball created
# with 'make dist', not from a working copy.)
find CSharp/csharp -name '*.cs' \
| awk -F'/' '{ print $3 }' \
| sort > csharp.ref.files
# extract file names from VC8 project.
grep -o -E 'Compile *Include *= *".*"' CSharp/csharp/NQuantLib_vc8.csproj \
| awk -F'"' '{ print $2 }' \
| sort > csharp.vc8.files
# Same for VC9...
grep -o -E 'Compile *Include *= *".*"' CSharp/csharp/NQuantLib_vc9.csproj \
| awk -F'"' '{ print $2 }' \
| sort > csharp.vc9.files
# ...and VC10 and above.
grep -o -E 'Compile *Include *= *".*"' CSharp/csharp/NQuantLib.csproj \
| awk -F'"' '{ print $2 }' \
| sort > csharp.vc1x.files
# Write out differences...
echo 'Visual Studio 8:' > sync.report
diff -b csharp.vc8.files csharp.ref.files >> sync.report
echo '' >> sync.report
echo '' >> sync.report
echo 'Visual Studio 9:' >> sync.report
diff -b csharp.vc9.files csharp.ref.files >> sync.report
echo '' >> sync.report
echo '' >> sync.report
echo 'Visual Studio 10 and above:' >> sync.report
diff -b csharp.vc1x.files csharp.ref.files >> sync.report
# ...and cleanup
rm -f csharp.*.files
cat sync.report