Skip to content

Commit

Permalink
xml: T5403: drop unnecessary copy of xml_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jestabro committed Aug 1, 2023
1 parent 1429fe3 commit dc7ca08
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ ENV/
templates-cfg/*
templates-op/*
tests/templates/*
xml_cache/*

# Debian packaging
debian/files
Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ OP_TMPL_DIR := templates-op
BUILD_DIR := build
DATA_DIR := data
SHIM_DIR := src/shim
CACHE_DIR := xml_cache
LIBS := -lzmq
CFLAGS :=
BUILD_ARCH := $(shell dpkg-architecture -q DEB_BUILD_ARCH)
Expand All @@ -24,11 +23,10 @@ op_xml_obj = $(op_xml_src:.xml.in=.xml)
.ONESHELL:
interface_definitions: $(config_xml_obj)
mkdir -p $(TMPL_DIR)
mkdir -p $(CACHE_DIR)

$(CURDIR)/scripts/override-default $(BUILD_DIR)/interface-definitions

$(CURDIR)/python/vyos/xml_ref/generate_cache.py --xml-dir $(BUILD_DIR)/interface-definitions --package-name vyos-1x --output-path $(CACHE_DIR)
$(CURDIR)/python/vyos/xml_ref/generate_cache.py --xml-dir $(BUILD_DIR)/interface-definitions

find $(BUILD_DIR)/interface-definitions -type f -name "*.xml" | xargs -I {} $(CURDIR)/scripts/build-command-templates {} $(CURDIR)/schema/interface_definition.rng $(TMPL_DIR) || exit 1

Expand Down Expand Up @@ -98,7 +96,6 @@ clean:
rm -rf $(BUILD_DIR)
rm -rf $(TMPL_DIR)
rm -rf $(OP_TMPL_DIR)
rm -rf $(CACHE_DIR)
$(MAKE) -C $(SHIM_DIR) clean

.PHONY: test
Expand Down
3 changes: 0 additions & 3 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ VYOS_CFG_TMPL_DIR := opt/vyatta/share/vyatta-cfg/templates
VYOS_OP_TMPL_DIR := opt/vyatta/share/vyatta-op/templates
VYOS_MIBS_DIR := usr/share/snmp/mibs
VYOS_LOCALUI_DIR := srv/localui
VYOS_XML_CACHE_DIR := python/vyos/xml_ref/pkg_cache

MIGRATION_SCRIPTS_DIR := opt/vyatta/etc/config-migrate/migrate
SYSTEM_SCRIPTS_DIR := usr/libexec/vyos/system
Expand All @@ -36,8 +35,6 @@ override_dh_auto_install:
# convert the XML to dictionaries
env PYTHONPATH=python python3 python/vyos/xml/generate.py

cp xml_cache/vyos_1x_cache.py python/vyos/xml_ref/pkg_cache

cd python; python3 setup.py install --install-layout=deb --root ../$(DIR); cd ..

# Install scripts
Expand Down

0 comments on commit dc7ca08

Please sign in to comment.