-
Notifications
You must be signed in to change notification settings - Fork 4
/
cygbuild
executable file
·42 lines (29 loc) · 869 Bytes
/
cygbuild
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
#!/bin/bash
# Do cygwin build
# this creates: joe-3.6-1.tar.bz2 and joe-3.6-1-src.tar.bz2
# you also need setup.hint
JOEVERSION=3.7
CYGVERSION=3.7-1
./autojoe
# Force use of /etc/termcap file because Cygwin's tgoto() is broken
# Install aspell first!
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/sbin \
--localstatedir=/var \
--datadir=/usr/share \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--docdir=/usr/share/doc/joe-${JOEVERSION} \
--disable-curses \
--disable-termcap
make clean
make
make install
(cd /; tar cf - etc/joe usr/share/joe usr/share/doc/joe-${JOEVERSION} \
usr/bin/joe.exe usr/bin/jmacs usr/bin/jstar \
usr/bin/jpico usr/bin/rjoe `cd /; \
find usr/share/man -name 'joe.1'`) | bzip2 >joe-$CYGVERSION.tar.bz2
make dist
gunzip <joe-$JOEVERSION.tar.gz | bzip2 >joe-$CYGVERSION-src.tar.bz2