forked from projectM-visualizer/projectm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sh
59 lines (44 loc) · 1.09 KB
/
publish.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
#!/bin/sh
export TARGET_DIR=$1
export VERSION=$2
# Build targets
export GZ=ON
export BZ2=OFF
#export SOURCE=ON
# CG Enablement
export CG=ON
# FTGL Enablement
export FTGL=ON
# openmp Enablement
export OPENMP=ON
publish() {
OLDDIR=`pwd`
DIR=$1
echo "publishing ${DIR}..."
cd ${DIR}
svn-clean -f
cmake -DUSE_FTGL=${FTGL} -DCPACK_SOURCE_TGZ=${GZ} -DUSE_OPENMP=${OPENMP} -DCPACK_SOURCE_TBZ2=${BZ2} -DCPACK_SOURCE_Z=OFF -DCPACK_SOURCE_TZ=OFF -DUSE_CG=${ON} -DCMAKE_BUILD_TYPE=Release > ${TARGET_DIR}/projectm-publish.log 2>&1
make package_source
cp *.gz -f ${TARGET_DIR}
cd ${OLDDIR}
}
release() {
scp ${TARGET_DIR}/*.gz w1z7ard,[email protected]:/home/frs/project/p/pr/projectm/${VERSION}
}
publish "libprojectM"
publish "../fonts"
publish "../presets"
publish "../presets_milkdrop_104"
publish "../presets_milkdrop_200"
publish "../presets_milkdrop"
publish "../presets_projectM"
publish "projectM-qt"
publish "projectM-test"
publish "projectM-libvisual"
publish "projectM-libvisual-alsa"
publish "projectM-pulseaudio"
publish "projectM-jack"
publish ".."
release
echo "[publisher] complete."
exit