forked from issp-center-dev/HPhi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdist.sh
executable file
·47 lines (47 loc) · 913 Bytes
/
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
#!/bin/sh
#
# ############# Note ################################
# Before packing, you should clean the GIT directory as
# $ git clean -f -d -x
# #####################################################
#
# Version ID
#
major=`cat src/include/version_major.h`
minor=`cat src/include/version_miner.h`
patch=`cat src/include/version_patch.h`
vid=`echo ${major}.${minor}.${patch}`
#
mkdir HPhi-${vid}
#
cp -rf * HPhi-${vid}
#
# Build docments
#
cd HPhi-${vid}/doc/jp
make -f makefile_doc_jp
cp userguide_jp.pdf ../../../
cd ../en
make -f makefile_doc_en
cp userguide_en.pdf ../../../
cd ../fourier/ja
sed -i -e "s/mathjax/pngmath/g" conf.py
make latexpdfja
make html
cd ../en
sed -i -e "s/mathjax/pngmath/g" conf.py
make latexpdfja
make html
cd ../../../
#
# Remove some files
#
find ./ -name ".git*" -delete
rm dist.sh
rm -rf HPhi-${vid}
#
# Pack
#
cd ../
tar czvf HPhi-${vid}.tar.gz HPhi-${vid}
rm -rf HPhi-${vid}