summaryrefslogtreecommitdiff
path: root/control.sh
diff options
context:
space:
mode:
Diffstat (limited to 'control.sh')
-rwxr-xr-xcontrol.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/control.sh b/control.sh
new file mode 100755
index 0000000..f68e2f0
--- /dev/null
+++ b/control.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Script for generating debian control file for ted
+
+echo 'Package: ted'
+printf 'Version: %s\n' $(grep '#define TED_VERSION' ted.h | cut -d'"' -f2)
+echo 'Section: text
+Priority: optional
+Architecture: amd64
+Essential: no
+Maintainer: Pommicket <pommicket@gmail.com>
+Description: A text editor.'
+printf 'Installed-Size: %s\n' $(du -k $1 | tail -n1 | cut -f1)
+echo 'Depends: libsdl2-2.0-0
+Homepage: https://github.com/pommicket/ted'