aboutsummaryrefslogtreecommitdiff
path: root/convert.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-22 14:32:09 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-22 14:32:09 +0200
commit1fb55fe25b3dd5ef61dbc38290fbba2e233dc6b6 (patch)
tree7cb454818b44176b111c540c879c900209cc90be /convert.sh
parente391c4624055138f075c0e5772ccaf8ede094b5a (diff)
downloadnissy-core-1fb55fe25b3dd5ef61dbc38290fbba2e233dc6b6.tar.gz
nissy-core-1fb55fe25b3dd5ef61dbc38290fbba2e233dc6b6.zip
Remove useless files
Diffstat (limited to 'convert.sh')
-rwxr-xr-xconvert.sh22
1 files changed, 0 insertions, 22 deletions
diff --git a/convert.sh b/convert.sh
deleted file mode 100755
index ba5aa96..0000000
--- a/convert.sh
+++ /dev/null
@@ -1,22 +0,0 @@
1#!/bin/sh
2
3for f in $@; do
4 if [ ! -f "$f" ]; then
5 echo "File $f does not exist"
6 exit 1
7 fi
8done
9
10for f in $@; do
11 while read -r line; do
12 #c=$(cat "$f")
13 c="$line"
14 cc="$(./run-old convert -fin H48 -fout B32 -cubestr "$c" 2>/dev/null)"
15 if [ -z "$cc" ]; then
16 echo "$line"
17 else
18 echo "$cc=A"
19 fi
20 done < "$f" > "$f.new"
21 mv "$f.new" "$f"
22done

Generated with cgit - Back to sebastiano.tronto.net