From 211df99fc6ed1e01223226a3d3f432471c727b68 Mon Sep 17 00:00:00 2001 From: jutty Date: Wed, 26 Jun 2024 09:33:34 -0300 Subject: [PATCH] Here goes something --- README.md | 5 +++++ check | 30 ++++++++++++++++++++++++++++++ docs/data.md | 3 +++ docs/portability.md | 3 +++ 4 files changed, 41 insertions(+) create mode 100644 README.md create mode 100755 check create mode 100644 docs/data.md create mode 100644 docs/portability.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..34e48bb --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# tori + +tori is a configuration management and system replication tool designed with portability in mind. + +You can find documentation in the [docs](docs) directory. diff --git a/check b/check new file mode 100755 index 0000000..6320289 --- /dev/null +++ b/check @@ -0,0 +1,30 @@ +#! /usr/bin/env sh + +# user-configured settings +TORI_ROOT="$HOME/.config/tori" + +# application logic + +log() { + local level="$1" # unimplemented + local message="$2" + + echo "$message" +} + + +traverse() { + local target="$1" + log debug "target: $target" + + if [ -f "$target" ]; then + echo "file: $target" + elif [ -d "$target" ]; then + traverse $target/* + fi +} + +cd "$TORI_ROOT" +for item in $TORI_ROOT/*; do + traverse "$item" +done diff --git a/docs/data.md b/docs/data.md new file mode 100644 index 0000000..83af9f2 --- /dev/null +++ b/docs/data.md @@ -0,0 +1,3 @@ +User data is initially configured to $HOME/.config/tori. At this stage, this allows concentrating all necessary data in a single place, however it is not ideal to have non-configuration file there. + +When making these configurable, it would be interesting to move the default backup location to $HOME/.local. diff --git a/docs/portability.md b/docs/portability.md new file mode 100644 index 0000000..28c5549 --- /dev/null +++ b/docs/portability.md @@ -0,0 +1,3 @@ +tori is designed to be portable so that its features allow transfering your configuration between different versions of an operating system or even between different operating systems depending on the presently supported ones. + +To aid this portability and ability to run in different systems, it is also designed to have minimal dependencies since it is meant to run on brand new systems where very few packages have been installed.