summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahmubashshir@gmail.com>2023-02-06 21:45:55 +0600
committerLibravatar Mubashshir <ahmubashshir@gmail.com>2023-02-06 21:45:55 +0600
commitdab81219994c70025114a9b5f72ca844bbb7c6ea (patch)
treedbac7ffe8f1704289d2f3e54c2b4fa520c07c098
parent69cea8f9106821e534776c87443f45defa9caa64 (diff)
downloadpatches-dab81219994c70025114a9b5f72ca844bbb7c6ea.tar.gz
patches-dab81219994c70025114a9b5f72ca844bbb7c6ea.zip
builder: Add repo source & docs
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
-rw-r--r--DOCS.md4
-rw-r--r--build-tools/config-home/builder/.bash_aliases8
-rw-r--r--build-tools/repo2
3 files changed, 14 insertions, 0 deletions
diff --git a/DOCS.md b/DOCS.md
index 64aaacf..dcbb6ae 100644
--- a/DOCS.md
+++ b/DOCS.md
@@ -19,3 +19,7 @@ $ buildroot build bullseye armhf
# Update buildroot for [distro]:[arch]
$ buildroot update bullseye armel
```
+
+#### repo usage
+This is just a simple wrapper around `reprepro`, set `REPO_BASE` to the rootdir of
+the reprepro repository, everything else is like `reprepro`
diff --git a/build-tools/config-home/builder/.bash_aliases b/build-tools/config-home/builder/.bash_aliases
new file mode 100644
index 0000000..c09a834
--- /dev/null
+++ b/build-tools/config-home/builder/.bash_aliases
@@ -0,0 +1,8 @@
+if [ -d ~/bin ];then
+ case ":$PATH:" in
+ (*:$HOME/bin:*) ;;
+ (*) export "PATH=$PATH:$HOME/bin";;
+ esac
+fi
+
+complete -F _reprepro repo
diff --git a/build-tools/repo b/build-tools/repo
new file mode 100644
index 0000000..46c0207
--- /dev/null
+++ b/build-tools/repo
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec reprepro -b "${REPO_BASE:-$HOME/lets-roll}" "$@"