-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-public-release.sh
54 lines (40 loc) · 1.55 KB
/
create-public-release.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
#!/bin/sh
set -e
lastVersion=0.26
newVersion=0.27
filesToWatch="VC8 *.txt regression_tests *.pxp *.ihf"
if [ ! -z "$(git status -s --untracked-files=no $filesToWatch)" ]; then
echo "Aborting, please commit the changes first"
exit 0
fi
baseName=matrixFileReaderXOP-v$newVersion
folder=public-releases/$baseName
srcFolder=$folder/src
docFolder=$folder/doc
pxpFolder=$folder/pxp
regressFolder=$folder/tests
rm -rf $folder
rm -rf $zipfile
mkdir -p $folder
mkdir -p $srcFolder
mkdir -p $docFolder
mkdir -p $pxpFolder
mkdir -p $regressFolder
cp License.txt $folder
cp Readme.md $folder
cp "matrixfilereader Help.ihf" $docFolder
cp matrixfilereader-basic-gui.pxp $pxpFolder
cp regression_tests/*.{bat,xml,ipf,pxp} $regressFolder
cp VC8/*.{bat,cpp,h,hpp,rc} VC8/MatrixFileReader.sln VC8/MatrixFileReader.vcxproj $srcFolder
cp -r VC8/bstrlib $srcFolder
cp Operation-Template-Generator.pxp $srcFolder
cp VC8/Release/matrixfilereader.xop $folder
cp VC8/Release-x64/matrixfilereader-64.xop $folder
cp VC8/VC2013_Redist_package/*.exe $folder
cd public-releases && zip -q -r $baseName.zip $baseName/* && cd ..
git rev-parse HEAD > $folder/internalVersionString.txt
rm -f changelog
git log --pretty="%B" $(cat public-releases/matrixFileReaderXOP-v$lastVersion/internalVersionString.txt)..HEAD $filesToWatch >> changelog
echo "################################################" >> changelog
echo "################################################" >> changelog
git log --stat $(cat public-releases/matrixFileReaderXOP-v$lastVersion/internalVersionString.txt)..HEAD $filesToWatch >> changelog