Skip to content

Commit 45f7caf

Browse files
authored
Merge pull request #392 from yutaro-sakamoto/release/v1.1.0
Release v1.1.0
2 parents 21b3e4a + 88aa1b3 commit 45f7caf

File tree

14 files changed

+102
-42
lines changed

14 files changed

+102
-42
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6+
## [1.1.0] - 2024-05-31
7+
New! opensource COBOL 4J supports Windows! (#377)
8+
### Added
9+
* Add a command line option `-Wimplicit-define` option (#386)
10+
### Fix
11+
* Fix READ PREVIOUS statement after START statement with <= operator (#379)
12+
* Fix Java code generated by cobj-api (#380)
13+
* "-" in Java variables are converted to "_"
14+
### Miscellaneous
15+
* Refactor libcobj/ (#387)
16+
* Support Ubuntu 24.04 (#375)
617
## [1.0.22] - 2024-04-30
718
### Added
819
* Add cobj-api command (#370)

ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-05-31 OSS Consortium <ws-opensource-cobol-contact@osscons.jp>
2+
3+
* opensource COBOL 4J v1.1.0 released.
4+
15
2024-04-30 OSS Consortium <ws-opensource-cobol-contact@osscons.jp>
26

37
* opensource COBOL 4J v1.0.22 released.

NEWS

+14
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@ NEWS - user visible changes -*- outline -*-
22

33
-----------------------------------------------------------------------
44

5+
* opensource COBOL 4J 1.1.0
6+
7+
** New Features
8+
(1) Support Windows
9+
(2) Add `-Wimplicit-define`
10+
** Bug Fixes
11+
(1) Fix READ PREVIOUS statement after START statement with <= operator
12+
(2) Fix Java code generated by cobj-api. Symbols "-" in Java variables are converted to "_"
13+
** Miscellaneous
14+
(1) Refactor libcobj/
15+
(2) Support Ubuntu 24.04
16+
17+
-----------------------------------------------------------------------
18+
519
* opensource COBOL 4J 1.0.22
620

721
** New Features

README.md

+18-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ opensource COBOL 4J is tested with the following platforms and dependencies
2424
In order to check requirements of older versions,
2525
see [doc/requirements-all.md](./doc/requirements-all.md).
2626

27-
## Installation
27+
## Installation (Linux)
2828

2929
### Install dependencies
3030

@@ -53,9 +53,9 @@ dnf install -y java-21-amazon-corretto-devel gcc make bison flex automake autoco
5353

5454
### Install opensource COBOL 4J
5555
```
56-
curl -L -o opensourcecobol4j-v1.0.22.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.22.tar.gz
57-
tar zxvf opensourcecobol4j-v1.0.22.tar.gz
58-
cd opensourcecobol4j-1.0.22
56+
curl -L -o opensourcecobol4j-v1.1.0.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.0.tar.gz
57+
tar zxvf opensourcecobol4j-v1.1.0.tar.gz
58+
cd opensourcecobol4j-1.1.0
5959
./configure --prefix=/usr/
6060
make
6161
sudo make install
@@ -67,12 +67,25 @@ Add /usr/lib/opensourcecobol4j/libcobj.jar to the environment variable $CLASSPAT
6767
In order to check installations of older versions,
6868
[doc/installation/](./doc/installation) directory respectively
6969

70+
71+
## Installation (Windows)
72+
73+
1. Visit the [Release page](https://github.com/opensourcecobol/opensourcecobol4j/releases/tag/v1.1.0)
74+
1. Download Source code and extract it.
75+
1. Download `cobj.exe`.
76+
1. Download `libcobj.jar`.
77+
1. Rename the directory `opensourcecobol4j-1.1.0\opensourcecobol4j-1.1.0` to `opensourcecobol4j-1.1.0\opensourcecobol4j`.
78+
1. Move the directory `opensourcecobol4j-1.1.0\opensourcecobol4j` to `C:\`.
79+
1. Make sure that there exists a directory `C:\opensourcecobol4j\config`.
80+
1. Update the environment variable `Path` so that it contains the directory containing `cobj.exe`
81+
1. Update the environment variable `CLASSPATH` so that it contains the path to `libcobj.jar`.
82+
7083
### Install with Docker
7184

7285
The docker container for opensource COBOL 4J is available.
7386

7487
```bash
75-
docker pull opensourcecobol/opensourcecobol4j:1.0.22
88+
docker pull opensourcecobol/opensourcecobol4j:1.1.0
7689
```
7790

7891
Execute the following commands in order to run the "Hello World" COBOL program.

README_JP.md

+19-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ opensource COBOL 4J は下記の環境でテストされています.
2323

2424
## インストール
2525

26-
opensource COBOL 4J v1.0.22はUbuntuとAlmaLinuxで動作を確認しています.
26+
opensource COBOL 4J v1.1.0はUbuntuとAlmaLinuxで動作を確認しています.
2727

2828
## 手動インストール
2929

@@ -52,14 +52,14 @@ dnf -y update
5252
dnf install -y java-21-amazon-corretto-devel gcc make bison flex automake autoconf diffutils gettext tar gzip
5353
```
5454

55-
### opensource COBOL 4Jのインストール
55+
### opensource COBOL 4Jのインストール (Linux)
5656

5757
下記のコマンドを実行する
5858

5959
```
60-
curl -L -o opensourcecobol4j-v1.0.22.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.22.tar.gz
61-
tar zxvf opensourcecobol4j-v1.0.22.tar.gz
62-
cd opensourcecobol4j-1.0.22
60+
curl -L -o opensourcecobol4j-v1.1.0.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.1.0.tar.gz
61+
tar zxvf opensourcecobol4j-v1.1.0.tar.gz
62+
cd opensourcecobol4j-1.1.0
6363
./configure --prefix=/usr/
6464
make
6565
sudo make install
@@ -71,12 +71,24 @@ sudo make install
7171

7272
古いバージョンのインストール方法は、[doc/installation_jp](./doc/installation_jp)をご覧ください.
7373

74+
## opensource COBOL 4Jのインストール (Windows)
75+
76+
1. [リリースページ](https://github.com/opensourcecobol/opensourcecobol4j/releases/tag/v1.1.0)を開く
77+
1. ソースコードをダウンロードして、回答する。
78+
1. `cobj.exe`をダウンロードする.
79+
1. `libcobj.jar`をダウンロードする.
80+
1. `opensourcecobol4j-1.1.0\opensourcecobol4j-1.1.0`ディレクトリを`opensourcecobol4j-1.1.0\opensourcecobol4j`にリネームする。
81+
1. `opensourcecobol4j-1.1.0\opensourcecobol4j`ディレクトリを`C:\`に移動する.
82+
1. これによりディレクトリ`C:\opensourcecobol4j\config`が存在することを確認する.
83+
1. 環境変数`Path`を設定して`cobj.exe`にパスを通す.
84+
1. 環境変数`CLASSPATH`を設定して`libcobj.jar`にパスを通す.
85+
7486
## Dockerによるインストール
7587

76-
opensource COBOL 4J v1.0.22をインストールしたDockerイメージを利用できます.
88+
opensource COBOL 4J v1.1.0をインストールしたDockerイメージを利用できます.
7789

7890
```bash
79-
docker pull opensourcecobol/opensourcecobol4j:1.0.22
91+
docker pull opensourcecobol/opensourcecobol4j:1.1.0
8092
```
8193

8294
コンテナ内で下記のコマンドを実行すると、Hello Worldプログラムをコンパイル&実行できる。

ReleaseNote.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
New! opensource COBOL 4J supports Windows!
12
# Added
2-
* Add cobj-api command (#370)
3-
* With cobj-api, you can easily generate an Spring boot Java file that calls the program generated by cobj.
4-
* See https://github.com/opensourcecobol/opensourcecobol4j?tab=readme-ov-file#cobj-api
5-
* Implement a -Wstrict-typing (#369)
3+
* Add a command line option `-Wimplicit-define` option
4+
# Fix
5+
* Fix READ PREVIOUS statement after START statement with <= operator
6+
* Fix Java code generated by cobj-api
7+
* "-" in Java variables are converted to "_"
68
# Miscellaneous
7-
* Simplify generated Java code based on SonarQube analysis (#366)
8-
* Improve the error message for record keys with duplicates (#368)
9+
* Refactor libcobj/
10+
* Support Ubuntu 24.04

configure

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.71 for opensource COBOL 4J 1.0.22.
3+
# Generated by GNU Autoconf 2.71 for opensource COBOL 4J 1.1.0.
44
#
55
# Report bugs to <ws-opensource-cobol-contact@osscons.jp>.
66
#
@@ -620,9 +620,9 @@ MAKEFLAGS=
620620

621621
# Identity of this package.
622622
PACKAGE_NAME='opensource COBOL 4J'
623-
PACKAGE_TARNAME='opensource-cobol-4j-1.0.22'
624-
PACKAGE_VERSION='1.0.22'
625-
PACKAGE_STRING='opensource COBOL 4J 1.0.22'
623+
PACKAGE_TARNAME='opensource-cobol-4j-1.1.0'
624+
PACKAGE_VERSION='1.1.0'
625+
PACKAGE_STRING='opensource COBOL 4J 1.1.0'
626626
PACKAGE_BUGREPORT='ws-opensource-cobol-contact@osscons.jp'
627627
PACKAGE_URL=''
628628

@@ -1411,7 +1411,7 @@ if test "$ac_init_help" = "long"; then
14111411
# Omit some internal or obsolete options to make the list less imposing.
14121412
# This message is too long to be a string in the A/UX 3.1 sh.
14131413
cat <<_ACEOF
1414-
\`configure' configures opensource COBOL 4J 1.0.22 to adapt to many kinds of systems.
1414+
\`configure' configures opensource COBOL 4J 1.1.0 to adapt to many kinds of systems.
14151415

14161416
Usage: $0 [OPTION]... [VAR=VALUE]...
14171417

@@ -1461,7 +1461,7 @@ Fine tuning of the installation directories:
14611461
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
14621462
--mandir=DIR man documentation [DATAROOTDIR/man]
14631463
--docdir=DIR documentation root
1464-
[DATAROOTDIR/doc/opensource-cobol-4j-1.0.22]
1464+
[DATAROOTDIR/doc/opensource-cobol-4j-1.1.0]
14651465
--htmldir=DIR html documentation [DOCDIR]
14661466
--dvidir=DIR dvi documentation [DOCDIR]
14671467
--pdfdir=DIR pdf documentation [DOCDIR]
@@ -1483,7 +1483,7 @@ fi
14831483

14841484
if test -n "$ac_init_help"; then
14851485
case $ac_init_help in
1486-
short | recursive ) echo "Configuration of opensource COBOL 4J 1.0.22:";;
1486+
short | recursive ) echo "Configuration of opensource COBOL 4J 1.1.0:";;
14871487
esac
14881488
cat <<\_ACEOF
14891489

@@ -1611,7 +1611,7 @@ fi
16111611
test -n "$ac_init_help" && exit $ac_status
16121612
if $ac_init_version; then
16131613
cat <<\_ACEOF
1614-
opensource COBOL 4J configure 1.0.22
1614+
opensource COBOL 4J configure 1.1.0
16151615
generated by GNU Autoconf 2.71
16161616

16171617
Copyright (C) 2021 Free Software Foundation, Inc.
@@ -2099,7 +2099,7 @@ cat >config.log <<_ACEOF
20992099
This file contains any messages produced by compilers while
21002100
running configure, to aid debugging if configure makes a mistake.
21012101

2102-
It was created by opensource COBOL 4J $as_me 1.0.22, which was
2102+
It was created by opensource COBOL 4J $as_me 1.1.0, which was
21032103
generated by GNU Autoconf 2.71. Invocation command line was
21042104

21052105
$ $0$ac_configure_args_raw
@@ -3397,8 +3397,8 @@ fi
33973397

33983398

33993399
# Define the identity of the package.
3400-
PACKAGE='opensource-cobol-4j-1.0.22'
3401-
VERSION='1.0.22'
3400+
PACKAGE='opensource-cobol-4j-1.1.0'
3401+
VERSION='1.1.0'
34023402

34033403

34043404
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -24216,7 +24216,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2421624216
# report actual input values of CONFIG_FILES etc. instead of their
2421724217
# values after options handling.
2421824218
ac_log="
24219-
This file was extended by opensource COBOL 4J $as_me 1.0.22, which was
24219+
This file was extended by opensource COBOL 4J $as_me 1.1.0, which was
2422024220
generated by GNU Autoconf 2.71. Invocation command line was
2422124221

2422224222
CONFIG_FILES = $CONFIG_FILES
@@ -24284,7 +24284,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
2428424284
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2428524285
ac_cs_config='$ac_cs_config_escaped'
2428624286
ac_cs_version="\\
24287-
opensource COBOL 4J config.status 1.0.22
24287+
opensource COBOL 4J config.status 1.1.0
2428824288
configured by $0, generated by GNU Autoconf 2.71,
2428924289
with options \\"\$ac_cs_config\\"
2429024290

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
AC_PREREQ(2.59)
2121

22-
AC_INIT([opensource COBOL 4J],[1.0.22],[ws-opensource-cobol-contact@osscons.jp],[opensource-cobol-4j-1.0.22])
22+
AC_INIT([opensource COBOL 4J],[1.1.0],[ws-opensource-cobol-contact@osscons.jp],[opensource-cobol-4j-1.1.0])
2323
AC_CONFIG_SRCDIR([libcobj.h])
2424
AC_CONFIG_HEADERS([config.h])
2525
AC_CONFIG_TESTDIR([tests])

doc/requirements-all.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
| version (opensource COBOL 4J) | OS | version (JDK) |
22
| -- | -- | -- |
3+
| 1.1.0 | Windows | 21 |
4+
| 1.1.0 | Ubuntu 24.04 | 21 |
5+
| 1.1.0 | AlmaLinux 9 | 11 |
6+
| 1.1.0 | Amazon Linux 2023 | 21 |
37
| 1.0.22 | Ubuntu 22.04 | 21 |
48
| 1.0.22 | AlmaLinux 9 | 11 |
59
| 1.0.22 | Amazon Linux 2023 | 21 |

libcobj/app/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ publishing {
6767
register<MavenPublication>("gpr") {
6868
groupId = "jp.osscons.opensourcecobol"
6969
artifactId = "libcobj"
70-
version = "1.0.22"
70+
version = "1.1.0"
7171
from(components["java"])
7272
}
7373
}

libcobj/app/src/main/java/jp/osscons/opensourcecobol/libcobj/Const.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ public class Const {
4141
// TODO 標準パスの設定
4242
public static final String COB_LIBRARY_PATH = "";
4343

44-
public static final String version = "1.0.22";
44+
public static final String version = "1.1.0";
4545
}

libcobj/app/src/main/java/jp/osscons/opensourcecobol/libcobj/user_util/cobj_api/ApiFilesOptions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static void getOptions(String[] args) {
3737
System.exit(0);
3838
return;
3939
} else if (cmd.hasOption("v")) {
40-
System.out.println("1.0.22");
40+
System.out.println("1.1.0");
4141
System.exit(0);
4242
return;
4343
} else if (cmd.getOptionValue("java-package") != null) {

tests/command-line-options.src/info-java-dir.at

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ AT_DATA([prog.cbl], [
2828
AT_CHECK([${COBJ} -info-json-dir=./ callee.cbl prog.cbl])
2929
AT_CHECK([cat info_callee.json], [0],
3030
[{
31-
"opensourcecobol4j_version": "1.0.22",
31+
"opensourcecobol4j_version": "1.1.0",
3232
"program_id": "callee",
3333
"procedure_division_using_parameters": @<:@
3434
{
@@ -45,7 +45,7 @@ AT_CHECK([cat info_callee.json], [0],
4545

4646
AT_CHECK([cat info_prog.json], [0],
4747
[{
48-
"opensourcecobol4j_version": "1.0.22",
48+
"opensourcecobol4j_version": "1.1.0",
4949
"program_id": "prog",
5050
"procedure_division_using_parameters": @<:@
5151
@:>@
@@ -64,7 +64,7 @@ AT_CHECK([${COBJ} -info-json-dir=bbb callee.cbl prog.cbl])
6464

6565
AT_CHECK([cat bbb/info_callee.json], [0],
6666
[{
67-
"opensourcecobol4j_version": "1.0.22",
67+
"opensourcecobol4j_version": "1.1.0",
6868
"program_id": "callee",
6969
"procedure_division_using_parameters": @<:@
7070
{
@@ -81,7 +81,7 @@ AT_CHECK([cat bbb/info_callee.json], [0],
8181

8282
AT_CHECK([cat bbb/info_prog.json], [0],
8383
[{
84-
"opensourcecobol4j_version": "1.0.22",
84+
"opensourcecobol4j_version": "1.1.0",
8585
"program_id": "prog",
8686
"procedure_division_using_parameters": @<:@
8787
@:>@

tests/package.m4

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Signature of the current package.
22
m4_define([AT_PACKAGE_NAME], [opensource COBOL 4J])
3-
m4_define([AT_PACKAGE_TARNAME], [opensource-cobol-4j-1.0.22])
4-
m4_define([AT_PACKAGE_VERSION], [1.0.22])
5-
m4_define([AT_PACKAGE_STRING], [opensource COBOL 4J 1.0.22])
3+
m4_define([AT_PACKAGE_TARNAME], [opensource-cobol-4j-1.1.0])
4+
m4_define([AT_PACKAGE_VERSION], [1.1.0])
5+
m4_define([AT_PACKAGE_STRING], [opensource COBOL 4J 1.1.0])
66
m4_define([AT_PACKAGE_BUGREPORT], [ws-opensource-cobol-contact@osscons.jp])

0 commit comments

Comments
 (0)