Skip to content

Instantly share code, notes, and snippets.

View metasim's full-sized avatar
🇺🇦

Simeon H.K. Fitch metasim

🇺🇦
View GitHub Profile
@metasim
metasim / c-ify.sh
Created June 23, 2011 13:28
Poor man's resource compiler
#!/bin/bash
# Poor man's resource compiler
# Converts given file into compilable byte stream via
# C code header and implementation files.
# Based on original by http://www.linuxjournal.com/users/mitch-frazier
#
if [[ $# -ne 1 ]]; then
echo "Usage: $0 FILENAME"
exit 1