Skip to content
Snippets Groups Projects
Commit dcd89700 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

scripts: embed/minify scripts in C code

parent 4a0399f1
Branches
Tags
No related merge requests found
......@@ -16,6 +16,6 @@ CFLAGS += -std=c99 -D_GNU_SOURCE -Wall -fPIC -I$(abspath .) -I$(abspath lib/gene
CFLAGS += -DPACKAGE_VERSION="\"$(MAJOR).$(MINOR)\"" -DPREFIX="\"$(PREFIX)\"" -DMODULEDIR="\"$(MODULEDIR)\""
RM := rm -f
LN := ln -s
XXD ?= hexdump -v -e '/1 "0x%02X, " " "'
XXD := ./scripts/embed.sh
INSTALL := install
PYTHON := python
#!/bin/sh
set -e
alias strip="sed -e 's/^[ ]*//g; s/[ ][ ]*/ /g; /^--/d; /^$/d'"
if hash xxd 2>/dev/null; then
xxd -i - < $1 | strip
else
hexdump -v -e '/1 "0x%02X, " " "' < $1 | strip
fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment