-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunprebuild.shold
77 lines (60 loc) · 2.29 KB
/
runprebuild.shold
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
70
71
72
73
74
75
76
77
#!/bin/sh
echo START: assemblies perms
chmod 755 bin/*.so bin/*.exe bin/*.dll bin/*.config bin/*.xml
echo END: assemblies perms
echo START: copy assemblies
# Check if directories exist before copying
if [ -d "sources/external/Radegast/assemblies" ]; then
cp sources/external/Radegast/assemblies/*.dll bin/
else
echo "Directory sources/external/Radegast/assemblies does not exist"
fi
if [ -d "sources/external/Radegast" ]; then
cp sources/external/Radegast/*.dll bin/
cp sources/external/Radegast/*.pdb bin/
cp sources/external/Radegast/*.config bin/
cp sources/external/Radegast/*.so bin/
cp sources/external/Radegast/*.dylib bin/
else
echo "Directory sources/external/Radegast does not exist"
fi
# Remove or comment out svn commands if not needed
# if command -v svn >/dev/null 2>&1; then
# svn revert bin/LAIR*.dll
# svn revert bin/LAIR.MachineLearning.dll
# svn revert bin/LAIR.Collect*.dll
# svn revert bin/*.dll bin/*.exe bin/*.so
# else
# echo "svn is not installed or not needed"
# fi
if [ -d "sources/external/LAIR.ResourceAPIs/PennBank/TreeBankGrapher/bin/Release" ]; then
cp sources/external/LAIR.ResourceAPIs/PennBank/TreeBankGrapher/bin/Release/*.dll bin/
else
echo "Directory sources/external/LAIR.ResourceAPIs/PennBank/TreeBankGrapher/bin/Release does not exist"
fi
#cp sources/external/Radegast/*.ico /tmp
#cp -a sources/external/Radegast/Resources/ /tmp/
#rm -f sources/external/LookingGlass-svn/bin/Prebuild.exe
#rm -f sources/external/LookingGlass-svn/bin/OpenMeta*
#rm -f sources/external/LookingGlass-svn/bin/HttpServer.dll
echo DONE: copy assemblies
echo START: Generating NANT build files
# Check if mono is installed
if command -v mono >/dev/null 2>&1; then
# Replace 'path/to/your/assembly.exe' with the actual command you need to run
mono path/to/your/actual_assembly.exe
else
echo "mono is not installed"
fi
# Add more commands here as needed
echo DONE: copy assemblies
echo START: Generating NANT build files
# Check if mono is installed
if command -v mono >/dev/null 2>&1; then
# Replace 'path/to/your/actual_assembly.exe' with the actual command you need to run
mono path/to/your/actual_assembly.exe
else
echo "mono is not installed"
fi
# Add more commands here as needed
echo DONE: Generating NANT build files