This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing d3.js license info, and also add back hex2c.sh shell script
Signed-off-by: deadprogram <[email protected]>
- Loading branch information
1 parent
3b11405
commit 550da29
Showing
6 changed files
with
9,819 additions
and
9,603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
if [[ $# -ne 1 ]]; then | ||
echo "Usage: $0 FILENAME" | ||
exit 1 | ||
fi | ||
file=$1 | ||
|
||
if [[ ! -f "$file" ]]; then | ||
echo "File not found: $file" | ||
exit 1 | ||
fi | ||
|
||
cname=$file | ||
cname=${cname//-/_} | ||
cname=${cname//./_} | ||
|
||
echo "static unsigned char $cname[] = {" | ||
hexdump -v -e '" " 16/1 " 0x%02x, " "\n"' $file | \ | ||
sed -e '$s/0x ,//g' | ||
echo "};" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.