From 2a04455955db9ec39c6ff0bd93af913054d25b3e Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Wed, 19 Apr 2023 16:22:53 -0400 Subject: [PATCH] Remove the makefiles from org_mode_samples. These Makefiles were beautiful, but now that the org_mode_samples are integrated into the rust test framework, it no longer makes sense to keep using these Makefiles. Instead, running scripts/run_integration_test.bash ... will output the same information, additional information, and it will do it all without writing anything to disk (besides any files generated during compilation). --- org_mode_samples/.gitignore | 1 - org_mode_samples/Makefile | 25 ------------------- org_mode_samples/comment/Makefile | 23 ----------------- org_mode_samples/common.el | 11 -------- org_mode_samples/drawer/Makefile | 23 ----------------- org_mode_samples/dump_org_ast.bash | 17 ------------- .../element_container_priority/Makefile | 23 ----------------- .../exit_matcher_investigation/Makefile | 23 ----------------- org_mode_samples/footnote_definition/Makefile | 23 ----------------- org_mode_samples/greater_block/Makefile | 23 ----------------- org_mode_samples/paragraphs/Makefile | 23 ----------------- org_mode_samples/plain_lists/Makefile | 23 ----------------- org_mode_samples/property_drawer/Makefile | 23 ----------------- .../sections_and_headings/Makefile | 23 ----------------- 14 files changed, 284 deletions(-) delete mode 100644 org_mode_samples/.gitignore delete mode 100644 org_mode_samples/Makefile delete mode 100644 org_mode_samples/comment/Makefile delete mode 100644 org_mode_samples/common.el delete mode 100644 org_mode_samples/drawer/Makefile delete mode 100755 org_mode_samples/dump_org_ast.bash delete mode 100644 org_mode_samples/element_container_priority/Makefile delete mode 100644 org_mode_samples/exit_matcher_investigation/Makefile delete mode 100644 org_mode_samples/footnote_definition/Makefile delete mode 100644 org_mode_samples/greater_block/Makefile delete mode 100644 org_mode_samples/paragraphs/Makefile delete mode 100644 org_mode_samples/plain_lists/Makefile delete mode 100644 org_mode_samples/property_drawer/Makefile delete mode 100644 org_mode_samples/sections_and_headings/Makefile diff --git a/org_mode_samples/.gitignore b/org_mode_samples/.gitignore deleted file mode 100644 index fcf91aa3..00000000 --- a/org_mode_samples/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.tree.txt diff --git a/org_mode_samples/Makefile b/org_mode_samples/Makefile deleted file mode 100644 index abc78426..00000000 --- a/org_mode_samples/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -SHELL := bash -.ONESHELL: -.SHELLFLAGS := -eu -o pipefail -c -.DELETE_ON_ERROR: -MAKEFLAGS += --warn-undefined-variables -MAKEFLAGS += --no-builtin-rules -SUBDIRS := $(wildcard */.) -OUT=out - -ifeq ($(origin .RECIPEPREFIX), undefined) - $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) -endif -.RECIPEPREFIX = > - -.PHONY: all -all: -> for dir in $(SUBDIRS); do \ -> make -C $$dir $@; \ -> done - -.PHONY: clean -clean: -> for dir in $(SUBDIRS); do \ -> make -C $$dir $@; \ -> done diff --git a/org_mode_samples/comment/Makefile b/org_mode_samples/comment/Makefile deleted file mode 100644 index c47a86c1..00000000 --- a/org_mode_samples/comment/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -SHELL := bash -.ONESHELL: -.SHELLFLAGS := -eu -o pipefail -c -.DELETE_ON_ERROR: -MAKEFLAGS += --warn-undefined-variables -MAKEFLAGS += --no-builtin-rules -SRCFILES := $(wildcard *.org) -OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) - -ifeq ($(origin .RECIPEPREFIX), undefined) - $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) -endif -.RECIPEPREFIX = > - -.PHONY: all -all: $(OUTFILES) - -.PHONY: clean -clean: -> rm -rf $(OUTFILES) - -%.tree.txt: %.org ../common.el ../dump_org_ast.bash -> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/common.el b/org_mode_samples/common.el deleted file mode 100644 index 8f32896d..00000000 --- a/org_mode_samples/common.el +++ /dev/null @@ -1,11 +0,0 @@ -(defun org-dump-ast (outpath) - (let - ( - ;; (parsed-tree (format "%s" (org-element-parse-buffer))) - (parsed-tree (pp-to-string (org-element-parse-buffer))) - ) - (with-temp-file outpath - (insert parsed-tree) - ) - ) - ) diff --git a/org_mode_samples/drawer/Makefile b/org_mode_samples/drawer/Makefile deleted file mode 100644 index c47a86c1..00000000 --- a/org_mode_samples/drawer/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -SHELL := bash -.ONESHELL: -.SHELLFLAGS := -eu -o pipefail -c -.DELETE_ON_ERROR: -MAKEFLAGS += --warn-undefined-variables -MAKEFLAGS += --no-builtin-rules -SRCFILES := $(wildcard *.org) -OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) - -ifeq ($(origin .RECIPEPREFIX), undefined) - $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) -endif -.RECIPEPREFIX = > - -.PHONY: all -all: $(OUTFILES) - -.PHONY: clean -clean: -> rm -rf $(OUTFILES) - -%.tree.txt: %.org ../common.el ../dump_org_ast.bash -> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/dump_org_ast.bash b/org_mode_samples/dump_org_ast.bash deleted file mode 100755 index 8ccd247c..00000000 --- a/org_mode_samples/dump_org_ast.bash +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -# -set -euo pipefail -IFS=$'\n\t' -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -INPUT_FILE="$1" -OUTPUT_FILE="$2" - -INIT_SCRIPT=$(cat < - -.PHONY: all -all: $(OUTFILES) - -.PHONY: clean -clean: -> rm -rf $(OUTFILES) - -%.tree.txt: %.org ../common.el ../dump_org_ast.bash -> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/exit_matcher_investigation/Makefile b/org_mode_samples/exit_matcher_investigation/Makefile deleted file mode 100644 index c47a86c1..00000000 --- a/org_mode_samples/exit_matcher_investigation/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -SHELL := bash -.ONESHELL: -.SHELLFLAGS := -eu -o pipefail -c -.DELETE_ON_ERROR: -MAKEFLAGS += --warn-undefined-variables -MAKEFLAGS += --no-builtin-rules -SRCFILES := $(wildcard *.org) -OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) - -ifeq ($(origin .RECIPEPREFIX), undefined) - $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) -endif -.RECIPEPREFIX = > - -.PHONY: all -all: $(OUTFILES) - -.PHONY: clean -clean: -> rm -rf $(OUTFILES) - -%.tree.txt: %.org ../common.el ../dump_org_ast.bash -> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/footnote_definition/Makefile b/org_mode_samples/footnote_definition/Makefile deleted file mode 100644 index c47a86c1..00000000 --- a/org_mode_samples/footnote_definition/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -SHELL := bash -.ONESHELL: -.SHELLFLAGS := -eu -o pipefail -c -.DELETE_ON_ERROR: -MAKEFLAGS += --warn-undefined-variables -MAKEFLAGS += --no-builtin-rules -SRCFILES := $(wildcard *.org) -OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) - -ifeq ($(origin .RECIPEPREFIX), undefined) - $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) -endif -.RECIPEPREFIX = > - -.PHONY: all -all: $(OUTFILES) - -.PHONY: clean -clean: -> rm -rf $(OUTFILES) - -%.tree.txt: %.org ../common.el ../dump_org_ast.bash -> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/greater_block/Makefile b/org_mode_samples/greater_block/Makefile deleted file mode 100644 index c47a86c1..00000000 --- a/org_mode_samples/greater_block/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -SHELL := bash -.ONESHELL: -.SHELLFLAGS := -eu -o pipefail -c -.DELETE_ON_ERROR: -MAKEFLAGS += --warn-undefined-variables -MAKEFLAGS += --no-builtin-rules -SRCFILES := $(wildcard *.org) -OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) - -ifeq ($(origin .RECIPEPREFIX), undefined) - $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) -endif -.RECIPEPREFIX = > - -.PHONY: all -all: $(OUTFILES) - -.PHONY: clean -clean: -> rm -rf $(OUTFILES) - -%.tree.txt: %.org ../common.el ../dump_org_ast.bash -> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/paragraphs/Makefile b/org_mode_samples/paragraphs/Makefile deleted file mode 100644 index c47a86c1..00000000 --- a/org_mode_samples/paragraphs/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -SHELL := bash -.ONESHELL: -.SHELLFLAGS := -eu -o pipefail -c -.DELETE_ON_ERROR: -MAKEFLAGS += --warn-undefined-variables -MAKEFLAGS += --no-builtin-rules -SRCFILES := $(wildcard *.org) -OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) - -ifeq ($(origin .RECIPEPREFIX), undefined) - $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) -endif -.RECIPEPREFIX = > - -.PHONY: all -all: $(OUTFILES) - -.PHONY: clean -clean: -> rm -rf $(OUTFILES) - -%.tree.txt: %.org ../common.el ../dump_org_ast.bash -> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/plain_lists/Makefile b/org_mode_samples/plain_lists/Makefile deleted file mode 100644 index c47a86c1..00000000 --- a/org_mode_samples/plain_lists/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -SHELL := bash -.ONESHELL: -.SHELLFLAGS := -eu -o pipefail -c -.DELETE_ON_ERROR: -MAKEFLAGS += --warn-undefined-variables -MAKEFLAGS += --no-builtin-rules -SRCFILES := $(wildcard *.org) -OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) - -ifeq ($(origin .RECIPEPREFIX), undefined) - $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) -endif -.RECIPEPREFIX = > - -.PHONY: all -all: $(OUTFILES) - -.PHONY: clean -clean: -> rm -rf $(OUTFILES) - -%.tree.txt: %.org ../common.el ../dump_org_ast.bash -> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/property_drawer/Makefile b/org_mode_samples/property_drawer/Makefile deleted file mode 100644 index c47a86c1..00000000 --- a/org_mode_samples/property_drawer/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -SHELL := bash -.ONESHELL: -.SHELLFLAGS := -eu -o pipefail -c -.DELETE_ON_ERROR: -MAKEFLAGS += --warn-undefined-variables -MAKEFLAGS += --no-builtin-rules -SRCFILES := $(wildcard *.org) -OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) - -ifeq ($(origin .RECIPEPREFIX), undefined) - $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) -endif -.RECIPEPREFIX = > - -.PHONY: all -all: $(OUTFILES) - -.PHONY: clean -clean: -> rm -rf $(OUTFILES) - -%.tree.txt: %.org ../common.el ../dump_org_ast.bash -> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/sections_and_headings/Makefile b/org_mode_samples/sections_and_headings/Makefile deleted file mode 100644 index c47a86c1..00000000 --- a/org_mode_samples/sections_and_headings/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -SHELL := bash -.ONESHELL: -.SHELLFLAGS := -eu -o pipefail -c -.DELETE_ON_ERROR: -MAKEFLAGS += --warn-undefined-variables -MAKEFLAGS += --no-builtin-rules -SRCFILES := $(wildcard *.org) -OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) - -ifeq ($(origin .RECIPEPREFIX), undefined) - $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) -endif -.RECIPEPREFIX = > - -.PHONY: all -all: $(OUTFILES) - -.PHONY: clean -clean: -> rm -rf $(OUTFILES) - -%.tree.txt: %.org ../common.el ../dump_org_ast.bash -> ../dump_org_ast.bash $< $@