import sys
path = "btsoot/DEBIAN/control"
version = sys.argv[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.")


@@ -4,16 +4,302 @@
 ort sys%0A
+%0Adef split(string, splitters): #MAY RESOLVE ALL PROBLEMS WITH CSV%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
 path = %22
@@ -321,16 +321,20 @@
 ontrol%22%0A
+full
 version 
@@ -347,16 +347,71 @@
 argv%5B1%5D%0A
+version = split(fullversion, %22v%22)%0Aversion = version%5B1%5D%0A
 control_

Fix version splitter