-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackRelease.sh
executable file
·58 lines (49 loc) · 1.65 KB
/
PackRelease.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
#!/bin/bash
################################################################################
### Packages all necessary source files for a release that can be built. ###
################################################################################
packageName="MassivelyParallel_Source"
files=(
# General Files
# =============
"README.md"
# Data
# ====
"Data/Fonts/arial.ttf"
"Data/fern.png"
"Data/Readme.txt"
# Kernels
# =======
"Kernels/Blend.cl"
"Kernels/PrefixSum.cl"
"Kernels/RadixSort.cl"
# Built Binaries
# ==============
"Output/Bin/x64Release/mpWrapper.dll"
"Output/Bin/x64Release/Texture.exe"
"Output/Bin/x64Release/PrefixSum.exe"
"Output/Bin/x64Release/RadixSort.exe"
"Output/Bin/x64Release/sfml-graphics-2.dll"
"Output/Bin/x64Release/sfml-system-2.dll"
"Output/Bin/x64Release/sfml-window-2.dll"
"Output/Bin/Win32Release/mpWrapper.dll"
"Output/Bin/Win32Release/Texture.exe"
"Output/Bin/Win32Release/PrefixSum.exe"
"Output/Bin/Win32Release/RadixSort.exe"
"Output/Bin/Win32Release/sfml-graphics-2.dll"
"Output/Bin/Win32Release/sfml-system-2.dll"
"Output/Bin/Win32Release/sfml-window-2.dll"
# Generated Files For a Release
# =============================
"RunExamTask1.bat"
"RunExamTask2.bat"
"RunExamTask3.bat"
)
# Generate the helper scripts.
echo "start Output/Bin/x64Release/Texture.exe" > RunExamTask1.bat
echo "start Output/Bin/x64Release/PrefixSum.exe" > RunExamTask2.bat
echo "start Output/Bin/x64Release/RadixSort.exe" > RunExamTask3.bat
# Build the archive.
7z a -mx9 -t7z "$packageName" ${files[@]}
# Clean up generated files.
rm RunExamTask1.bat RunExamTask2.bat RunExamTask3.bat