From e1ab87c36c186a504f2ed61cb2e3fda226a9dbbf Mon Sep 17 00:00:00 2001 From: Andreas Hrubak Date: Mon, 12 Aug 2024 13:35:34 +0200 Subject: [PATCH] getcvt --- boilerplate/source.c | 22 ++++++++++++++++++++++ user-tools/Makefile.lists.mk | 1 + user-tools/getcvt | 21 +++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 boilerplate/source.c create mode 100755 user-tools/getcvt diff --git a/boilerplate/source.c b/boilerplate/source.c new file mode 100644 index 0000000..c40315d --- /dev/null +++ b/boilerplate/source.c @@ -0,0 +1,22 @@ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +#ifdef DEBUG +#define DEBUG(fmt, ...) fprintf(stderr, fmt "\n", __VA_ARGS__) +#else +#define DEBUG(...) 0 +#endif + +typedef int bool_t; +#define TRUE 1 +#define FALSE 0 diff --git a/user-tools/Makefile.lists.mk b/user-tools/Makefile.lists.mk index 4ad37fb..d8d89a3 100644 --- a/user-tools/Makefile.lists.mk +++ b/user-tools/Makefile.lists.mk @@ -49,6 +49,7 @@ TOOLS ?= \ foreach \ fzf-preview \ g_filename_to_uri \ + getcvt \ git-checkout-sparse \ gitconfigexec \ git_diff \ diff --git a/user-tools/getcvt b/user-tools/getcvt new file mode 100755 index 0000000..d2619d1 --- /dev/null +++ b/user-tools/getcvt @@ -0,0 +1,21 @@ +#!/bin/sh + +true <