-
Notifications
You must be signed in to change notification settings - Fork 3
/
fixmakefile.sh
executable file
·69 lines (58 loc) · 2.66 KB
/
fixmakefile.sh
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
#
# This file is part of Schumix.
#
# Copyright (C) 2010-2013 Megax <http://megax.yeahunter.hu/>
# Copyright (C) 2013-2015 Schumix Team <http://schumix.eu/>
#
# Schumix is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Schumix is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Schumix. If not, see <http://www.gnu.org/licenses/>.
#
main () {
for f in $(find -iname "*.am" | grep -v "./_ReSharper" | grep -v "/obj/" | grep -v "./External")
do
file_update $f
done
configure_ac_update
makefile_am_update
}
configure_ac_update () {
f=configure.ac
echo "Update $f"
find $f -type f -exec sed -i 's/External\/YamlDotNet\/YamlDotNet\/Makefile/External\/YamlDotNet\/YamlDotNet\/Makefile\nPo\/Makefile/g' {} \;
}
makefile_am_update () {
f=Makefile.am
echo "Update $f"
find $f -type f -exec sed -i 's/External\/YamlDotNet\/YamlDotNet /External\/YamlDotNet\/YamlDotNet Po /g' {} \;
}
file_update () {
f=$1
echo "Update file: $f"
# IronPython.Modules.dll
find $f -type f -exec sed -i 's/..\/..\/..\/..\/IronPython.Modules/..\/..\/Dependencies\/IronPython.Modules.dll/g' {} \;
find $f -type f -exec sed -i 's/..\/..\/IronPython.Modules/Dependencies\/IronPython.Modules.dll/g' {} \;
# IronPython.dll
find $f -type f -exec sed -i 's/..\/..\/..\/..\/IronPython/..\/..\/Dependencies\/IronPython.dll/g' {} \;
find $f -type f -exec sed -i 's/..\/..\/IronPython/Dependencies\/IronPython.dll/g' {} \;
# Microsoft.Dynamic.dll
find $f -type f -exec sed -i 's/..\/..\/..\/..\/Microsoft.Dynamic/..\/..\/Dependencies\/Microsoft.Dynamic.dll/g' {} \;
find $f -type f -exec sed -i 's/..\/..\/Microsoft.Dynamic/Dependencies\/Microsoft.Dynamic.dll/g' {} \;
# Microsoft.Scripting.Metadata.dll
find $f -type f -exec sed -i 's/..\/..\/..\/..\/Microsoft.Scripting.Metadata/..\/..\/Dependencies\/Microsoft.Scripting.Metadata.dll/g' {} \;
find $f -type f -exec sed -i 's/..\/..\/Microsoft.Scripting.Metadata/Dependencies\/Microsoft.Scripting.Metadata.dll/g' {} \;
# Microsoft.Scripting.dll
find $f -type f -exec sed -i 's/..\/..\/..\/..\/Microsoft.Scripting/..\/..\/Dependencies\/Microsoft.Scripting.dll/g' {} \;
find $f -type f -exec sed -i 's/..\/..\/Microsoft.Scripting/Dependencies\/Microsoft.Scripting.dll/g' {} \;
}
main