forked from phuicy/ROBOOP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makedist
75 lines (72 loc) · 2.3 KB
/
makedist
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
# makefile for ROBOOP distribution
.PHONY : all clean
all :
make -C docs
make -C doxy
zip -r roboop * -i *.txt -x CMakeCache.txt
zip -r roboop * -i docs/*.txt
zip -r roboop * -i source/*.txt -x CMakeCache.txt
zip -r roboop * -i newmat/*.txt -x CMakeCache.txt
zip -r roboop * -i newmat/*.in
zip -r roboop * -i newmat/*.dox
zip -r roboop * -i newmat/*.png
zip -r roboop * -i *.h -x "*CMakeFiles*" -x "*boost*"
zip -r roboop * -i *.cpp -x "*CMakeFiles*" -x "*boost*"
zip -r roboop * -i *.conf
zip -r roboop * -i *.dat
zip -r roboop * -i *.m* -x "*CMakeFiles*" -x "*boost*"
# Watcom compiler no longer supported
# zip -r roboop * -i *.wpj
# zip -r roboop * -i *.tgt
zip -r roboop * -i *.pdf -x docs/htdocs/htmldoc/* -x /doxy/latex/class*.pdf -x docs/htdocs/roboop_doxy/*.pdf
zip -r roboop * -i *.gcc *.gccOSX *.qnx
zip -r roboop * -i *.gw32
zip -r roboop * -i *.bc5
zip -r roboop * -i *.vcpp
zip -r roboop * -i *.bkl
# no converting
# unix2dos *.dsw
# unix2dos *.dsp
# unix2dos *.sln
# unix2dos *.vcproj
zip -r roboop * -i *.dsw
zip -r roboop * -i *.dsp
zip -r roboop * -i *.sln
zip -r roboop * -i *.vcproj
# dos2unix *.vcproj
# dos2unix *.sln
# dos2unix *.dsp
# dos2unix *.dsw
zip -r roboop * -i newmat/readme.txt
zip -r roboop * -i newmat/*.lfl
zip -r roboop * -i newmat/*.css
zip -r roboop * -i newmat/nm11.htm
zip -r roboop * -i newmat/*.mak
zip -r roboop * -i newmat/garch.dat
zip -r roboop doxy/roboop_doxygen
unzip roboop.zip -d roboop
tar cfv roboop.tar roboop
gzip roboop.tar
rm roboop.zip
zip -r roboop roboop/*
rm -R roboop/*
rmdir roboop
unzip docs/robdocs -d htmldoc
tar cfv robdocs.tar htmldoc
gzip robdocs.tar
rm -R htmldoc/*
rmdir htmldoc
if [ ! -e downloads ]; then mkdir downloads; fi
mv roboop.zip roboop.tar.gz robdocs.tar.gz docs/robdocs.zip downloads
if [ ! -e docs/htdocs/htmldoc ]; then mkdir docs/htdocs/htmldoc; fi
cp docs/robot.pdf docs/htdocs/htmldoc
if [ ! -e docs/htdocs/roboop_doxy ]; then mkdir docs/htdocs/roboop_doxy; fi
cp doxy/html/*.js docs/htdocs/roboop_doxy
cp doxy/html/*.html docs/htdocs/roboop_doxy
cp doxy/html/*.png docs/htdocs/roboop_doxy
cp doxy/html/*.css docs/htdocs/roboop_doxy
cp doxy/latex/*.pdf docs/htdocs/roboop_doxy
zip -j downloads/roboop_doxy.zip doxy/html/*
unzip downloads/robdocs -d docs/htdocs/htmldoc
clean :
rm downloads/*.* makefile.*~