# SPDX-License-Identifier: CC0-1.0 language = 'COBOL' display = 'COBOL (Free) (GnuCOBOL 3.2)' license = [ { name = 'GPL-3.0-or-later', url = 'https://sourceforge.net/p/gnucobol/code/HEAD/tree/tags/gnucobol-3.2/COPYING' }, { name = 'LGPL-3.0-only', url = 'https://sourceforge.net/p/gnucobol/code/HEAD/tree/tags/gnucobol-3.2/COPYING.LESSER' }, ] filename = 'Main.cbl' install = ''' ATCODER_GNUCOBOL_VERSION=3.2 sudo apt-get update sudo apt-get install -y libgmp-dev libcjson-dev cd /tmp wget -q -O gnucobol-bin.tar.xz https://downloads.sourceforge.net/project/gnucobol/gnucobol/${ATCODER_GNUCOBOL_VERSION}/gnucobol-${ATCODER_GNUCOBOL_VERSION}_bin.tar.xz sudo tar -C / --strip-components=1 -xf gnucobol-bin.tar.xz sudo ldconfig ''' compile = ''' cobc -x -free -O2 -o a.out Main.cbl ''' object = 'a.out' execution = [ './a.out', ]