From f585c85a44f2942cecb7df5c6db1c8510e0ac3aa Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Sun, 3 Nov 2024 16:55:38 +1100 Subject: [PATCH] Don't need those named like that now that they're out of .config. Also I got in the habit of using 'wire' instead of 'wiring'. --- swat-codegen/PKGBUILD | 4 ++-- swat-codegen/codegen.sh | 8 ++++---- swat-codegen/swat_armour | 4 ---- swat-codegen/swat_class | 12 ------------ swat-codegen/swat_gun | 8 -------- swat-codegen/swat_spec | 9 --------- swat-codegen/swat_talent | 7 ------- swat-codegen/swat_trait | 16 ---------------- 8 files changed, 6 insertions(+), 62 deletions(-) delete mode 100644 swat-codegen/swat_armour delete mode 100644 swat-codegen/swat_class delete mode 100644 swat-codegen/swat_gun delete mode 100644 swat-codegen/swat_spec delete mode 100644 swat-codegen/swat_talent delete mode 100644 swat-codegen/swat_trait diff --git a/swat-codegen/PKGBUILD b/swat-codegen/PKGBUILD index 03d8028..6fca632 100644 --- a/swat-codegen/PKGBUILD +++ b/swat-codegen/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Zergling_man, from fedora.email pkgname=swat-codegen -pkgver=1.0.4 +pkgver=1.0.5 pkgrel=1 pkgdesc="A simple CLI interface to RCPDv3, the rank code management service for the game SWAT: Aftermath" arch=('any') @@ -18,4 +18,4 @@ package() { chmod a+x codegen.sh cp swat_* codegen.sh ${pkgdir}/opt/swat-codegen ln -s /opt/swat-codegen/codegen.sh /${pkgdir}/usr/bin/rcpd -} \ No newline at end of file +} diff --git a/swat-codegen/codegen.sh b/swat-codegen/codegen.sh index b4077ed..c08bac6 100755 --- a/swat-codegen/codegen.sh +++ b/swat-codegen/codegen.sh @@ -44,15 +44,15 @@ function delete_code function lookup { w= - matches=`grep -ic "${*:2}" $loc/swat_$1` + matches=`grep -ic "${*:2}" $loc/$1` if [ "$matches" -ne 1 ]; then echo "$1 '${*:2}' is ambiguous (got $matches matches), trying whole-word match" >&2 # Attempt whole-word match and see if we get exactly one result (and then remember it has happened!!!) w=w - word_matches=`grep -ic$w "${*:2}" $loc/swat_$1` + word_matches=`grep -ic$w "${*:2}" $loc/$1` if [ "$word_matches" -ne 1 ]; then echo "still ambiguous (got $word_matches matches)" >&2; return 1; fi fi - read $1 garbage <<< "`grep -i$w "${*:2}" $loc/swat_$1`" + read $1 garbage <<< "`grep -i$w "${*:2}" $loc/$1`" } # USER-FACING COMMANDS @@ -102,4 +102,4 @@ function generate } # DO SHIT -"$@" \ No newline at end of file +"$@" diff --git a/swat-codegen/swat_armour b/swat-codegen/swat_armour deleted file mode 100644 index 4ce8582..0000000 --- a/swat-codegen/swat_armour +++ /dev/null @@ -1,4 +0,0 @@ -Light -Medium m -Heavy h -Advanced Cyborg Watchman diff --git a/swat-codegen/swat_class b/swat-codegen/swat_class deleted file mode 100644 index 014afe2..0000000 --- a/swat-codegen/swat_class +++ /dev/null @@ -1,12 +0,0 @@ -Sniper gs ss -Medic -Tactician -Psychologist -Maverick -HeavyOrdnance ho -Demolitions -Cyborg -Pyrotechnician -Watchman wm -TechOps techies -UmbrellaClone gal alice diff --git a/swat-codegen/swat_gun b/swat-codegen/swat_gun deleted file mode 100644 index f49af1b..0000000 --- a/swat-codegen/swat_gun +++ /dev/null @@ -1,8 +0,0 @@ -AssaultRifle a ar Medic Tactician Psychologist -SniperRifle s sr TechOps -Chaingun c cg HeavyOrdnance Cyborg -RocketLauncher r rl Demolitions -Flamethrower f ft Pyrotechnician -LaserRifle lr -GatlingLaser gl -Pistols fists UmbrellaClone diff --git a/swat-codegen/swat_spec b/swat-codegen/swat_spec deleted file mode 100644 index 92c5d53..0000000 --- a/swat-codegen/swat_spec +++ /dev/null @@ -1,9 +0,0 @@ -Weaponry -PowerArmor pa -EnergyCells -Cybernetics -Triage -Chemistry -Leadership -Robotics -Espionage diff --git a/swat-codegen/swat_talent b/swat-codegen/swat_talent deleted file mode 100644 index a6be3a0..0000000 --- a/swat-codegen/swat_talent +++ /dev/null @@ -1,7 +0,0 @@ -Courage crg -Wiring -Running -Spotting -Toughness -Tinkering -Hacking diff --git a/swat-codegen/swat_trait b/swat-codegen/swat_trait deleted file mode 100644 index 519e57f..0000000 --- a/swat-codegen/swat_trait +++ /dev/null @@ -1,16 +0,0 @@ -Skilled -Gifted -Survivalist -Dragoon -Acrobat -SwiftLearner sl -Healer -FlowerChild fc -ChemReliant cr -RadResistant rr -Gadgeteer -Prowler -Energizer energiser -PackRat pr -Engineer -Reckless