File: make_header_from_png.sh

package info (click to toggle)
springlobby 0.255%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,228 kB
  • ctags: 14,450
  • sloc: cpp: 76,178; ansic: 61,718; python: 863; sh: 654; perl: 238; xml: 52; makefile: 41; sed: 16
file content (12 lines) | stat: -rwxr-xr-x 273 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#! /usr/bin/env bash

### to be called from project root
### no input arguments
### converts all found png files into c headers 
### and moves them into src/images

cd images/exported
for img in `ls *.png`; do
	python ../../tools/png2c.py $img
done
mv *.h ../../src/images