summary refs log tree commit diff
path: root/bitmasks/bsd/Makemask
diff options
context:
space:
mode:
Diffstat (limited to 'bitmasks/bsd/Makemask')
-rwxr-xr-xbitmasks/bsd/Makemask9
1 files changed, 9 insertions, 0 deletions
diff --git a/bitmasks/bsd/Makemask b/bitmasks/bsd/Makemask
new file mode 100755
index 0000000..e5ed661
--- /dev/null
+++ b/bitmasks/bsd/Makemask
@@ -0,0 +1,9 @@
+#!/bin/sh
+rm -f *.xbm
+cp -f ../../bitmaps/bsd/* .
+ls *.xbm | sed 's/\(.*\)\.xbm/mv -f & \1_mask.xbm/' | sh
+for i in *.xbm ; do
+	f=`basename $i .xbm`
+	sed 's/unsigned *//' $i | xbmtopbm | pbmmask | pbmtoxbm | sed "s/noname/$f/" > t
+	mv -f t $i
+done