summaryrefslogtreecommitdiff
path: root/pieces/xboard/convbm
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-19 18:49:00 -0500
committerCraig Jennings <c@cjennings.net>2025-10-19 18:49:00 -0500
commite1d60d2110987f1060c0b37d032621c669d97d5e (patch)
tree2ff171a86f28593da724bb754d80278e74cf8f5d /pieces/xboard/convbm
parent865b2ab11469f3bd1bc4d7b3669cb4626c37be08 (diff)
fix: all: fixes to get emacs-chess working on 30.2
- added lexical-binding headers to all source files - replaced make-variable-buffer-local with defvar-local throughout source code - replaced deprecated cl library with cl-lib, including replacing assert with cl-assert to emacs-chess-steps.el - added proper headers and footers to test files when missing - populated chess images and chess sounds directory - fixed defcustom calling directory-files without error handling. xboard installation no longer required.
Diffstat (limited to 'pieces/xboard/convbm')
m---------pieces0
-rw-r--r--pieces/xboard/convbm35
2 files changed, 35 insertions, 0 deletions
diff --git a/pieces b/pieces
deleted file mode 160000
-Subproject e1fd1a04010df93f18ff1c1d8d62ea23ce96029
diff --git a/pieces/xboard/convbm b/pieces/xboard/convbm
new file mode 100644
index 0000000..e577fdc
--- /dev/null
+++ b/pieces/xboard/convbm
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+for size in 129 116 108 95 87 80 72 64 58 54 49 45 40 37 33 29 25 21 ; do
+
+ mkdir $size
+
+ for piece in p r n b q k ; do
+
+ name=${piece}ld${size}
+ echo $name
+ convert -pen green -draw 'color 0,0 floodfill' \
+ XBM:${piece}${size}o.bm tmp.xpm
+ sed < tmp.xpm > $size/$name.xpm -f convbm.sed -e s/magick/$name/
+
+ name=${piece}ll${size}
+ echo $name
+ convert -pen gray -draw 'color 0,0 floodfill' \
+ XBM:${piece}${size}o.bm tmp.xpm
+ sed < tmp.xpm > $size/$name.xpm -f convbm.sed -e s/magick/$name/
+
+ name=${piece}dd${size}
+ echo $name
+ convert -pen green -draw 'color 0,0 floodfill' \
+ XBM:${piece}${size}s.bm tmp.xpm
+ sed < tmp.xpm > $size/$name.xpm -f convbm.sed -e s/magick/$name/
+
+ name=${piece}dl${size}
+ echo $name
+ convert -pen gray -draw 'color 0,0 floodfill' \
+ XBM:${piece}${size}s.bm tmp.xpm
+ sed < tmp.xpm > $size/$name.xpm -f convbm.sed -e s/magick/$name/
+
+ done
+
+done