Skip to content

Commit

Permalink
v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kikuchan committed Jan 19, 2024
1 parent 7938c61 commit e80c5c0
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 9 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 kikuchan
Copyright (c) 2023-2024 kikuchan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 9 additions & 1 deletion cli/qrean-detect/qrean-detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,16 @@ void init_screen(pngle_t *pngle, uint32_t w, uint32_t h)
}

const char *progname;

void print_version(FILE *out)
{
fprintf(out, "qrean-detect version %s\n", qrean_version());
fprintf(out, "Copyright (c) 2023-2024 kikuchan\n");
}

int usage(FILE *out)
{
print_version(out);
fprintf(out, "Usage: %s [OPTION]... [FILE]\n", progname);
fprintf(out, "Read QR/Barcode from PNG image file\n");
fprintf(out, "\n");
Expand Down Expand Up @@ -221,7 +229,7 @@ int main(int argc, char *argv[])
return usage(stdout);

case 'V':
printf("qrean-detect version %s\n", qrean_version());
print_version(stdout);
return 0;

case 'o':
Expand Down
10 changes: 9 additions & 1 deletion cli/qrean/qrean.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@ enum {
};

const char *progname;

void print_version(FILE *out)
{
fprintf(out, "qrean version %s\n", qrean_version());
fprintf(out, "Copyright (c) 2023-2024 kikuchan\n");
}

int usage(FILE *out)
{
print_version(out);
fprintf(out, "Usage: %s [OPTION]... [STRING]\n", progname);
fprintf(out, "Generate QR/Barcode image\n");
fprintf(out, "\n");
Expand Down Expand Up @@ -155,7 +163,7 @@ int main(int argc, char *argv[])
return usage(stdout);

case 'V':
printf("qrean version %s\n", qrean_version());
print_version(stdout);
return 0;

case 'i':
Expand Down
2 changes: 1 addition & 1 deletion dist/Qrean.js

Large diffs are not rendered by default.

Binary file modified dist/qrean-detect.exe
Binary file not shown.
Binary file modified dist/qrean.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "libqrean",
"version": "0.0.1-alpha.0",
"description": "A portable QR and Barcode manipulation library with a small footprint",
"keywords": "qr, qrcode, mqr, microqr, rmqr, barcode, c, arduino, ean, jan, nw7, code39, code93, itf",
"version": "0.0.1",
"description": "A portable QR and Barcode generation / manipulation library written in C",
"keywords": "qr, qrcode, mqr, microqr, rmqr, tqr, barcode, c, arduino, ean, jan, nw7, code39, code93, itf",
"repository": {
"type": "git",
"url": "https://github.com/kikuchan/libqrean.git"
Expand Down
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ LDFLAGS += -lm
OBJS = $(addprefix $(BUILDDIR)/,$(SRCS:.c=.o))
DEPS = $(OBJS:.o=.d)

VERSION := $(shell jq -r .version $(abspath ../package.json))
MAJORVERSION := $(shell echo "$(VERSION)" | sed 's,\..*,,')
VERSION := $(shell grep version $(abspath ../package.json) | awk '{print $$2}' | tr -d ',"')
MAJORVERSION := $(word 1,$(subst ., ,$(VERSION)))
LIBRARY = libqrean
TARGET = $(BUILDDIR)/$(LIBRARY)

Expand Down

0 comments on commit e80c5c0

Please sign in to comment.