Skip to content

Commit

Permalink
Remove most legacy generated files. (#399)
Browse files Browse the repository at this point in the history
* Remove legacy Beats fields.yml file
* Remove legacy schema.csv file
  • Loading branch information
webmat authored Mar 25, 2019
1 parent 5b9a57e commit 910b692
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2,118 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

### Deprecated

* Move old `fields.yml` file from the root of the repo to `generated/legacy`. #386

<!-- All empty sections:
Expand Down
19 changes: 2 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,14 @@ check-license-headers:
.PHONY: clean
clean:
rm -rf schema.json build
rm -rf generated/legacy/{schema.csv,template.json,fields.yml}
rm -rf generated/legacy/template.json
# Clean all markdown files for use-cases
find ./use-cases -type f -name '*.md' -not -name 'README.md' -print0 | xargs -0 rm --

# Alias to generate source code for all languages.
.PHONY: codegen
codegen: gocodegen

# Build schema.csv from schema files.
.PHONY: csv
csv: ve
$(PYTHON) scripts/schemas.py

# Build the asciidoc book.
.PHONY: docs
docs:
Expand All @@ -52,16 +47,6 @@ docs:
fi
./build/docs/build_docs.pl --doc ./docs/index.asciidoc --chunk=1 $(OPEN_DOCS) -out ./build/html_docs

# Build the legacy fields.yml file.
.PHONY: fields_legacy
fields_legacy:
cat schemas/*.yml > fields.tmp.yml
sed -i.bak 's/^/ /g' fields.tmp.yml
sed -i.bak 's/---//g' fields.tmp.yml
cat generated/legacy/fields_header.yml > generated/legacy/fields.yml
cat fields.tmp.yml >> generated/legacy/fields.yml
rm -f fields.tmp.yml fields.tmp.yml.bak

# Format code and files in the repo.
.PHONY: fmt
fmt: ve
Expand All @@ -71,7 +56,7 @@ fmt: ve

# Alias to generate everything.
.PHONY: generate
generate: csv readme template fields_legacy codegen generator
generate: readme template codegen generator

# Run the new generator
.PHONY: generator
Expand Down
Loading

0 comments on commit 910b692

Please sign in to comment.