c9d0b1ddb82547d84659220d3cb5495ffe82a836
[buildscripts] / org-mode
1 #!/bin/bash
2 # Copyright (C) 2016 Ian Kelling
3
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7
8 # http://www.apache.org/licenses/LICENSE-2.0
9
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 # git clone git://orgmode.org/org-mode.git
17 # texinfo is all that is technically needed, but having tex for math is good
18
19 if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi
20
21 logq pi git texlive install-info
22
23 cd /a/opt/org-mode
24
25 if isdeb; then
26 logq pi texinfo
27 else
28 logq pi texinfo-tex
29 fi
30 # rm -rf !(.git)
31 # i checkout -f errbuff
32
33 if [[ $1 == -u ]]; then
34 git fetch
35 git rebase master
36 fi
37
38 # org mode doesn't make native binaries, so it is portable, and we keep it .emacs.d
39 # org-learn is a dependency of org-drill
40 dd of=local.mk <<'EOF'
41 ORG_ADD_CONTRIB = org-drill org-learn
42 EMACS = /usr/local/bin/emacs
43 prefix = /a/c/.emacs.d
44 EOF
45
46 d=/a/c/.emacs.d/emacs
47 if [[ -e $d ]]; then
48 d2=${d}-disabled
49 rm -rf $d2
50 mv $d $d2
51 fi
52 logq make install