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
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,6 @@ CFLAGS += -std=c99 -D_GNU_SOURCE -Wall -fPIC -I$(abspath .) -I$(abspath lib/gene ...@@ -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)\"" CFLAGS += -DPACKAGE_VERSION="\"$(MAJOR).$(MINOR)\"" -DPREFIX="\"$(PREFIX)\"" -DMODULEDIR="\"$(MODULEDIR)\""
RM := rm -f RM := rm -f
LN := ln -s LN := ln -s
XXD ?= hexdump -v -e '/1 "0x%02X, " " "' XXD := ./scripts/embed.sh
INSTALL := install INSTALL := install
PYTHON := python 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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment