aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-05-22 04:31:57 -0700
committerFuwn <[email protected]>2022-05-22 04:31:57 -0700
commit5b11262e810c2cd06c0baa120f5674b7f5c98833 (patch)
treea3271ec1c4616104b71b1374a5ce6cda2445cca6
downloadbazel-cobol-example-5b11262e810c2cd06c0baa120f5674b7f5c98833.tar.xz
bazel-cobol-example-5b11262e810c2cd06c0baa120f5674b7f5c98833.zip
feat: initial releaseHEADmain
-rw-r--r--.gitignore2
-rw-r--r--BAZEL_COBOL_EXAMPLE.CBL8
-rw-r--r--BUILD6
-rw-r--r--LICENSE24
-rw-r--r--README.md15
-rw-r--r--WORKSPACE16
6 files changed, 71 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1ca8bc5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+# Bazel
+bazel-*
diff --git a/BAZEL_COBOL_EXAMPLE.CBL b/BAZEL_COBOL_EXAMPLE.CBL
new file mode 100644
index 0000000..af62634
--- /dev/null
+++ b/BAZEL_COBOL_EXAMPLE.CBL
@@ -0,0 +1,8 @@
+ IDENTIFICATION DIVISION.
+ PROGRAM-ID. BAZEL_COBOL_EXAMPLE.
+ DATA DIVISION.
+ WORKING-STORAGE SECTION.
+ 77 FOO PIC 99 VALUE 43.
+ PROCEDURE DIVISION.
+ DISPLAY "Hello, World!" FOO
+ STOP RUN.
diff --git a/BUILD b/BUILD
new file mode 100644
index 0000000..8b9b6a8
--- /dev/null
+++ b/BUILD
@@ -0,0 +1,6 @@
+load("@io_bazel_rules_cobol//cobol:def.bzl", "cobol_binary")
+
+cobol_binary(
+ name = "bazel_cobol_example",
+ srcs = ["BAZEL_COBOL_EXAMPLE.CBL"],
+)
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..00d2e13
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org/> \ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..16ed908
--- /dev/null
+++ b/README.md
@@ -0,0 +1,15 @@
+<h1 align="center">Bazel COBOL Example</h1>
+
+Bazel COBOL Example is an example of a COBOL program built using
+[`rules_cobol`](https://github.com/Fuwn/rules_cobol): a set of build rules to
+make working with COBOL in Bazel possible.
+
+## Usage
+
+```shell
+$ bazel run //:bazel_cobol_example
+```
+
+## License
+
+This project is licensed with the [The Unlicense](LICENSE).
diff --git a/WORKSPACE b/WORKSPACE
new file mode 100644
index 0000000..cc9897e
--- /dev/null
+++ b/WORKSPACE
@@ -0,0 +1,16 @@
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
+RULES_COBOL_VERSION = "0.1.0"
+
+http_archive(
+ name = "io_bazel_rules_cobol",
+ sha256 = "465d6185382baf98ee1273efa4ff0f26e47524b2f6954b7b8071c5b48d21932e",
+ strip_prefix = "rules_cobol-{v}".format(v = RULES_COBOL_VERSION),
+ urls = [
+ "https://github.com/Fuwn/rules_cobol/archive/refs/tags/{v}.zip".format(v = RULES_COBOL_VERSION),
+ ],
+)
+
+load("@io_bazel_rules_cobol//cobol:deps.bzl", "cobol_rules_dependencies")
+
+cobol_rules_dependencies()