Ajla 0.1.4
[ajla.git] / dist-os2.sh
blob212c430b1a4d07b6b52122e3ec16e7acfed736fb
1 #!/bin/sh
3 # Copyright (C) 2024 Mikulas Patocka
5 # This file is part of Ajla.
7 # Ajla is free software: you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation, either version 3 of the License, or (at your option) any later
10 # version.
12 # Ajla is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along with
17 # Ajla. If not, see <https://www.gnu.org/licenses/>.
19 set -e
20 export CC=gcc.exe
21 export CPP=cpp.exe
22 export CFLAGS='-O1 -Zsys -Zomf -Zstack 1024 -Wall -W'
23 export PATH_SEPARATOR=';'
24 ./configure --disable-dependency-tracking
25 sleep 2
26 touch config.status
27 sleep 2
28 touch Makefile config.h
29 sleep 2
30 make -j12
31 VERSION="`sed -n 's/^.*"\(.*\)"$/\1/p' <version.h`"
32 rm -rf ajla
33 mkdir ajla
34 cat ajla.exe >ajla/ajla.exe
35 cp -r builtin.pcd AUTHORS COPYING ChangeLog README charsets stdlib ajla
36 mkdir ajla/programs
37 cp -r programs/acmd ajla/programs
38 rm -f ajla-$VERSION-os2.zip
39 zip -r ajla-$VERSION-os2.zip ajla
40 rm -rf ajla