1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-15 15:11:12 +02:00

Move and update degimpify script(s)

* Move and rename `degimpify.sh` script to make it easier to find and use the `degimpify` script.
* Make `degimpify.sh` script use `sed` in place.
* Make `degimpify.sh` script use default directories if none are provided.
* Make `degimpify.sh` script support processing all XPM (Pixmap) files in multiple directories.

Signed-off-by: Emily Mabrey <emabrey@tenacityaudio.org>
Reference-to: https://github.com/tenacityteam/tenacity/pull/407
This commit is contained in:
Emily Mabrey
2021-07-31 00:13:24 -04:00
committed by GitHub
parent 04609bba01
commit cabd66d8e7
5 changed files with 27 additions and 31 deletions

View File

@@ -1,10 +0,0 @@
#!/bin/bash
# Run this script to take an xpm generated by the gimp and format it for
# use Audacity
for arg in $@
do
filename=$(tempfile)
cat $arg| sed -e 's/\_xpm\[\]/\[\]/' -e 's/^static char \*/static const char \*/' > $filename
mv $filename $arg
done