sonalake / snmp-sim-rust

SNMP Simulator (Rust)
Apache License 2.0
23 stars 3 forks source link

Fix `make db-entity` for Mac #39

Closed frankhorv closed 2 years ago

frankhorv commented 2 years ago

sed is a platform dependent utility, and its syntax differs on different platform sed is used by Makefile for make db-entity command, which currently works on linux only, but we need to support Mac as well.

We can use cargo-make, to define a platform specific task for db-entity model creation. The tasks are defined in Makefile.toml, where we need one macOS specific task, and one generic, which will run on all other platform as default.

More details on cargo-make and how to define platform specific tasks. medium blog