import sys

def split(string, splitters):
	final = [string]
	for x in splitters:
		for i,s in enumerate(final):
			if x in s and x != s:
				left, right = s.split(x, 1)
				final[i] = left
				final.insert(i + 1, x)
				final.insert(i + 2, right)
	return final

fullversion = sys.argv[1]
path = f"btsoot_{fullversion}/DEBIAN/control"
version = split(fullversion, "v")
version = version[1]
control_content = f"""Package: btsoot
Version: {version}
Section: base
Priority: optional
Architecture: i386
Depends: build-essential
Maintainer: Paul Kramme <pjkramme@gmail.com>
Description: BTSOOT
 Folder redundancy offsite-backup utility.
"""
print("DEB PACKAGE VERSION REPLACER")
# yes, i wrote a tool for this...
with open(path, "a") as f:
	f.write(control_content)
print("Done.")

@@ -9,258 +9,8 @@
 ys%0A%0A
-def split(string, splitters):%0A%09final = %5Bstring%5D%0A%09for x in splitters:%0A%09%09for i,s in enumerate(final):%0A%09%09%09if x in s and x != s:%0A%09%09%09%09left, right = s.split(x, 1)%0A%09%09%09%09final%5Bi%5D = left%0A%09%09%09%09final.insert(i + 1, x)%0A%09%09%09%09final.insert(i + 2, right)%0A%09return final%0A%0A
 full
@@ -91,14 +91,8 @@
 n = 
-split(
 full
@@ -102,14 +102,12 @@
 sion
-, %22v%22)
+%5B1:%5D
 %0Aver

Remove unecessary code Add first charakter remover