summaryrefslogtreecommitdiff
path: root/add-to-repo.sh
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-25 00:06:42 -0400
committerpommicket <pommicket@gmail.com>2023-09-25 00:06:42 -0400
commit0543dfbb9b68e7386abc3ce315ccb64bb85a94b3 (patch)
treeba9b5c7b3ec56928f617dab972688e6dac501817 /add-to-repo.sh
parent0414d5e872ccadebc5dcc04939824f921682f59a (diff)
add apt repository
Diffstat (limited to 'add-to-repo.sh')
-rwxr-xr-xadd-to-repo.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/add-to-repo.sh b/add-to-repo.sh
new file mode 100755
index 0000000..4718281
--- /dev/null
+++ b/add-to-repo.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+[ "$1" = "" ] && { echo "please provide path to repo"; exit 1; }
+[ -d "$1/pool/main" ] || { echo "expected $1/pool/main to exist, but it doesn't"; exit 1; }
+make ted.deb || exit 1
+VERSION=$(grep '^Version: ' control | sed 's/^Version: //' | grep '[0-9]*\.[0-9]*\.[0-9]*' || exit 1)
+cp ted.deb "$1/pool/main/ted_${VERSION}-1_amd64.deb"
+echo "Added ted v. $VERSION"