-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dist.sh
executable file
·72 lines (61 loc) · 1.85 KB
/
dist.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
70
71
#!/bin/sh
cd $1
DISTDIR=$2/gdsto3d-$3
mkdir -p ${DISTDIR}
cp dist.sh \
config.h.cmake \
example_config.txt \
CMakeLists.txt \
example.cmd \
example.gds \
example_process.txt \
readme.txt \
todo.txt \
AUTHORS \
COPYING \
changes.txt \
${DISTDIR}
mkdir -p ${DISTDIR}/libgdsto3d
cp libgdsto3d/config_cfg.h libgdsto3d/config_cfg.cpp \
libgdsto3d/gdselements.h \
libgdsto3d/gdsobject.h libgdsto3d/gdsobject.cpp \
libgdsto3d/gdsobject_pov.h libgdsto3d/gdsobject_pov.cpp \
libgdsto3d/gdsobject_svg.h libgdsto3d/gdsobject_svg.cpp \
libgdsto3d/gdsparse.h libgdsto3d/gdsparse.cpp \
libgdsto3d/gdsparse_pov.h libgdsto3d/gdsparse_pov.cpp \
libgdsto3d/gdsparse_svg.h libgdsto3d/gdsparse_svg.cpp \
libgdsto3d/gdspath.h libgdsto3d/gdspath.cpp \
libgdsto3d/gdspolygon.h libgdsto3d/gdspolygon.cpp \
libgdsto3d/gdstext.h libgdsto3d/gdstext.cpp \
libgdsto3d/gdsto3d.h \
libgdsto3d/gds_types.h libgdsto3d/gds_types.cpp \
libgdsto3d/gds_globals.h libgdsto3d/gds_globals.cpp \
libgdsto3d/process_cfg.h libgdsto3d/process_cfg.cpp \
libgdsto3d/CMakeLists.txt \
${DISTDIR}/libgdsto3d/
#mkdir -p ${DISTDIR}/gds2ogl
#cp gds2ogl/gdsobject_ogl.cpp \
# gds2ogl/gdsparse_ogl.cpp \
# gds2ogl/gds2ogl.h gds2ogl/gds2ogl.cpp \
# gds2ogl/CMakeLists.txt \
# ${DISTDIR}/gds2ogl/
mkdir -p ${DISTDIR}/gds2pov
cp gds2pov/gds2pov.cpp \
gds2pov/CMakeLists.txt \
${DISTDIR}/gds2pov/
mkdir -p ${DISTDIR}/gds2svg
cp gds2svg/gds2svg.cpp \
gds2svg/CMakeLists.txt \
${DISTDIR}/gds2svg/
mkdir -p ${DISTDIR}/gdsoglviewer
cp gdsoglviewer/gdsobject_ogl.h gdsoglviewer/gdsobject_ogl.cpp \
gdsoglviewer/gdsoglviewer.h gdsoglviewer/gdsparse_ogl.cpp \
gdsoglviewer/gdsparse_ogl.h gdsoglviewer/gdsoglviewer.cpp \
gdsoglviewer/CMakeLists.txt \
${DISTDIR}/gdsoglviewer/
mkdir -p ${DISTDIR}/build
tar -jcf ${DISTDIR}.tar.bz2 -C $2 gdsto3d-$3
pushd ${DISTDIR}
zip -9 -r ${DISTDIR}.zip .
popd
#rm -rf ${DISTDIR}