summaryrefslogtreecommitdiff
path: root/commit-os
diff options
context:
space:
mode:
authorPhilip J Freeman <elektron@halo.nu>2005-07-22 01:13:13 -0700
committerPhilip J Freeman <elektron@halo.nu>2026-04-22 12:13:02 -0700
commit521028801517a92ffdbf4911ca9d6db67e8de7d3 (patch)
tree5eaf050789a03275c73fd810f8d65edb6de54cc1 /commit-os
parente33ea89387b46c5a4a91b1fd90c05e0d7ad56470 (diff)
add a gui; initial dev releasehalo.01.20250721.235859
Diffstat (limited to 'commit-os')
-rwxr-xr-xcommit-os11
1 files changed, 9 insertions, 2 deletions
diff --git a/commit-os b/commit-os
index 5e16a06..3648285 100755
--- a/commit-os
+++ b/commit-os
@@ -2,9 +2,14 @@
set -o pipefail
. config
+. sh-lib
-version="$(find "$roots" -mindepth 1 -maxdepth 1 -type d | cut -d/ -f2 | sort -rn | head -1)"
-root="$roots"/"$version"
+# Check for dependencies:
+package_deps ostree
+
+#TODO: Maybe this script should take branch and version as arguments?
+version="$(cd "${roots:?}"/"${branch:?}"; find ./ -mindepth 1 -maxdepth 1 -type d | cut -d/ -f2 | sort -rn | head -1)"
+root="${roots:?}"/"${branch:?}"/"$version"
if [ ! -d "$root" ]; then
echo "Error: root dir not found: $root" >&2
@@ -13,6 +18,8 @@ fi
[ -d "$build_repo" ] && rm -rf "$build_repo"
+mkdir -p "$build_repo"
+
ostree --repo="$build_repo" init --mode=archive
ostree --repo="$build_repo" commit -b "$branch" --tree=dir="$root"