Skip to content

Commit

Permalink
Print cmd line for generated gfx/fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
kanflo committed Oct 2, 2019
1 parent 70f1106 commit eacdc2a
Show file tree
Hide file tree
Showing 35 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion opendps/font-full_small.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Font generated from gfx/ProggyClean.ttf 16pt */
/** Font generated from `./gen_lookup.py -f gfx/ProggyClean.ttf -s 16 -o full_small -a` */

#include "font-full_small.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/font-full_small.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Font generated from gfx/ProggyClean.ttf 16pt */
/** Font generated from `./gen_lookup.py -f gfx/ProggyClean.ttf -s 16 -o full_small -a` */

#ifndef __FONT_FULL_SMALL_H__
#define __FONT_FULL_SMALL_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/font-meter_large.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Font generated from gfx/Ubuntu-C.ttf 48pt */
/** Font generated from `./gen_lookup.py -f gfx/Ubuntu-C.ttf -s 48 -o meter_large` */

#include "font-meter_large.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/font-meter_large.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Font generated from gfx/Ubuntu-C.ttf 48pt */
/** Font generated from `./gen_lookup.py -f gfx/Ubuntu-C.ttf -s 48 -o meter_large` */

#ifndef __FONT_METER_LARGE_H__
#define __FONT_METER_LARGE_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/font-meter_medium.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Font generated from gfx/Ubuntu-C.ttf 24pt */
/** Font generated from `./gen_lookup.py -f gfx/Ubuntu-C.ttf -s 24 -o meter_medium` */

#include "font-meter_medium.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/font-meter_medium.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Font generated from gfx/Ubuntu-C.ttf 24pt */
/** Font generated from `./gen_lookup.py -f gfx/Ubuntu-C.ttf -s 24 -o meter_medium` */

#ifndef __FONT_METER_MEDIUM_H__
#define __FONT_METER_MEDIUM_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/font-meter_small.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Font generated from gfx/Ubuntu-C.ttf 18pt */
/** Font generated from `./gen_lookup.py -f gfx/Ubuntu-C.ttf -s 18 -o meter_small` */

#include "font-meter_small.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/font-meter_small.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Font generated from gfx/Ubuntu-C.ttf 18pt */
/** Font generated from `./gen_lookup.py -f gfx/Ubuntu-C.ttf -s 18 -o meter_small` */

#ifndef __FONT_METER_SMALL_H__
#define __FONT_METER_SMALL_H__
Expand Down
8 changes: 4 additions & 4 deletions opendps/gen_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def convert_font_to_c(font_fname, characters, font_size, font_spacing, output_fi
# Generate the C source file
font_source_file = open(font_source_filename, "w")

font_source_file.write("/** Font generated from %s %dpt */\n\n" % (font_fname, font_size))
font_source_file.write("/** Font generated from `%s` */\n\n" % (" ".join(sys.argv)))
font_source_file.write("#include \"%s\"\n\n" % (font_header_filename))
font_source_file.write("const uint32_t font_%s_height = %d;\n" % (output_filename, character_heights))

Expand Down Expand Up @@ -260,7 +260,7 @@ def convert_font_to_c(font_fname, characters, font_size, font_spacing, output_fi
# Generate the C header file
font_header_file = open(font_header_filename, "w")

font_header_file.write("/** Font generated from %s %dpt */\n\n" % (font_fname, font_size))
font_header_file.write("/** Font generated from `%s` */\n\n" % (" ".join(sys.argv)))

font_header_file.write("#ifndef __FONT_%s_H__\n" % (output_filename.upper()))
font_header_file.write("#define __FONT_%s_H__\n\n" % (output_filename.upper()))
Expand Down Expand Up @@ -311,7 +311,7 @@ def convert_graphic_to_c(graphic_fname, output_filename):
# Generate the C source file
gfx_source_file = open(gfx_source_filename, "w")

gfx_source_file.write("/** Gfx generated from %s */\n\n" % (graphic_fname))
gfx_source_file.write("/** Gfx generated from `%s` */\n\n" % (" ".join(sys.argv)))

gfx_source_file.write("#include \"%s\"\n\n" % (gfx_header_filename))

Expand All @@ -332,7 +332,7 @@ def convert_graphic_to_c(graphic_fname, output_filename):
# Generate the C header file
gfx_header_file = open(gfx_header_filename, "w")

gfx_header_file.write("/** Gfx generated from %s */\n\n" % (graphic_fname))
gfx_header_file.write("/** Gfx generated from `%s` */\n\n" % (" ".join(sys.argv)))

gfx_header_file.write("#ifndef __GFX_%s_H__\n" % (output_filename.upper()))
gfx_header_file.write("#define __GFX_%s_H__\n\n" % (output_filename.upper()))
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-cc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\cc.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/cc.png -o cc` */

#include "gfx-cc.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-cc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\cc.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/cc.png -o cc` */

#ifndef __GFX_CC_H__
#define __GFX_CC_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-cl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/cl.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/cl.png -o cl` */

#include "gfx-cl.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-cl.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\cl.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/cl.png -o cl` */

#ifndef __GFX_CL_H__
#define __GFX_CL_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-crosshair.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\crosshair.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/crosshair.png -o crosshair` */

#include "gfx-crosshair.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-crosshair.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\crosshair.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/crosshair.png -o crosshair` */

#ifndef __GFX_CROSSHAIR_H__
#define __GFX_CROSSHAIR_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-cv.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\cv.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/cv.png -o cv` */

#include "gfx-cv.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-cv.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\cv.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/cv.png -o cv` */

#ifndef __GFX_CV_H__
#define __GFX_CV_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-padlock.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\padlock.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/padlock.png -o padlock` */

#include "gfx-padlock.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-padlock.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\padlock.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/padlock.png -o padlock` */

#ifndef __GFX_PADLOCK_H__
#define __GFX_PADLOCK_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-power.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\power.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/power.png -o power` */

#include "gfx-power.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-power.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\power.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/power.png -o power` */

#ifndef __GFX_POWER_H__
#define __GFX_POWER_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-poweroff.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/poweroff.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/poweroff.png -o poweroff` */

#include "gfx-poweroff.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-poweroff.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/poweroff.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/poweroff.png -o poweroff` */

#ifndef __GFX_POWEROFF_H__
#define __GFX_POWEROFF_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-poweron.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/poweron.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/poweron.png -o poweron` */

#include "gfx-poweron.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-poweron.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/poweron.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/poweron.png -o poweron` */

#ifndef __GFX_POWERON_H__
#define __GFX_POWERON_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-saw.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/saw.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/saw.png -o saw` */

#include "gfx-saw.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-saw.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/saw.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/saw.png -o saw` */

#ifndef __GFX_SAW_H__
#define __GFX_SAW_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-sin.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/sin.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/sin.png -o sin` */

#include "gfx-sin.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-sin.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/sin.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/sin.png -o sin` */

#ifndef __GFX_SIN_H__
#define __GFX_SIN_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-square.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/square.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/square.png -o square` */

#include "gfx-square.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-square.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/square.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/square.png -o square` */

#ifndef __GFX_SQUARE_H__
#define __GFX_SQUARE_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-thermometer.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from `python ./gen_lookup.py -i gfx/png/thermometer.png -o thermometer */
/** Gfx generated from `./gen_lookup.py -i gfx/png/thermometer.png -o thermometer` */

#include "gfx-thermometer.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-thermometer.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx/png/thermometer.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/thermometer.png -o thermometer` */

#ifndef __GFX_THERMOMETER_H__
#define __GFX_THERMOMETER_H__
Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-wifi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\wifi.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/wifi.png -o wifi` */

#include "gfx-wifi.h"

Expand Down
2 changes: 1 addition & 1 deletion opendps/gfx-wifi.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Gfx generated from gfx\png\wifi.png */
/** Gfx generated from `./gen_lookup.py -i gfx/png/wifi.png -o wifi` */

#ifndef __GFX_WIFI_H__
#define __GFX_WIFI_H__
Expand Down

0 comments on commit eacdc2a

Please sign in to comment.