mirror of
https://git.ari.lt/ari/badapplefetch.git
synced 2025-04-19 15:33:41 -05:00
use od instead of xxd
Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
parent
1f21196614
commit
e6419975df
2 changed files with 4 additions and 2 deletions
|
@ -13,6 +13,7 @@ As the creator of Neofetch has [picked up farming](https://github.com/dylanaraps
|
|||
- yt-dlp or youtube-dl (for downloading videos off YouTube, you can change that with `YT=...`)
|
||||
- LibMPV & Libpthread (if you have `LIBMPV=1`)
|
||||
- BASH
|
||||
- `od` utility (for audio)
|
||||
|
||||
# Compiling
|
||||
|
||||
|
|
|
@ -5,8 +5,9 @@ set -eu
|
|||
main() {
|
||||
echo "#include <stdint.h>"
|
||||
echo "const unsigned char audio[] = {"
|
||||
xxd -i <audio.ogg
|
||||
echo "};const uint64_t audio_size = sizeof(audio);"
|
||||
od -An -vtu1 <audio.ogg | awk '{for (i=1; i<=NF; i++) printf "0x%s, ", $i}'
|
||||
echo "};"
|
||||
echo "const uint64_t audio_size = sizeof(audio);"
|
||||
}
|
||||
|
||||
main
|
||||
|
|
Loading…
Add table
Reference in a new issue