From ce950b2331f17a9d7f777fbba1463340c16ec469 Mon Sep 17 00:00:00 2001 From: Ulf Wiger Date: Thu, 24 Apr 2025 16:47:44 +0200 Subject: [PATCH] Zompify --- Emakefile | 1 + LICENSE | 15 +++++++-------- rebar.config | 2 ++ zomp.meta | 17 +++++++++++++++++ zompify.sh | 12 ++++++++++++ 5 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 Emakefile create mode 100644 zomp.meta create mode 100755 zompify.sh diff --git a/Emakefile b/Emakefile new file mode 100644 index 0000000..68c7b67 --- /dev/null +++ b/Emakefile @@ -0,0 +1 @@ +{"src/*", [debug_info, {i, "include/"}, {outdir, "ebin/"}]}. diff --git a/LICENSE b/LICENSE index 2d8bd51..986436f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,15 +1,14 @@ -ISC License - -Copyright (c) 2018, aeternity developers +Copyright 2025 Aeternity Anstalt, QPQ AG Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + diff --git a/rebar.config b/rebar.config index fc28bcf..ead251f 100644 --- a/rebar.config +++ b/rebar.config @@ -7,6 +7,8 @@ ]} ]}. +{post_hooks, [{compile, "./zompify.sh"}]}. + {xref_checks, [undefined_function_calls, undefined_functions, locals_not_used, deprecated_function_calls, deprecated_functions]}. diff --git a/zomp.meta b/zomp.meta new file mode 100644 index 0000000..d4ed82e --- /dev/null +++ b/zomp.meta @@ -0,0 +1,17 @@ +{name,"enoise"}. +{type,app}. +{modules,[]}. +{prefix,"enoise"}. +{desc,"Noise protocol"}. +{author,"Hans Svensson, QPQ AG"}. +{package_id,{"uwiger","enoise",{1,3,0}}}. +{deps,[]}. +{key_name,none}. +{a_email,"ulf@wiger.net"}. +{c_email,"ulf@wiger.net"}. +{copyright,"Aeternity Anstalt, QPQ AG"}. +{file_exts,[]}. +{license,"ISC"}. +{repo_url,"https://git.qpq.swiss/QPQ-AG/enoise"}. +{tags,[]}. +{ws_url,[]}. diff --git a/zompify.sh b/zompify.sh new file mode 100755 index 0000000..3c56b80 --- /dev/null +++ b/zompify.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -e + +APP=$(basename "$PWD") +SRC="_build/default/lib/$APP" +DST="$PWD/_build/zomp/lib/$APP" +mkdir -p "$DST" +find "$SRC" -type l ! -exec test -e {} \; -delete +cp -aR -L "$SRC/." "$DST/" +cp "$PWD/zomp.meta" "$DST/" +cp "$PWD/Emakefile" "$DST" +rm "$DST"/ebin/*.beam