tMerge branch 'master' of git.devuan.org:sdk/libdevuansdk - libdevuansdk - common library for devuan's simple distro kits HTML git clone https://git.parazyd.org/libdevuansdk DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- DIR commit a0376ae65be7e973ae0e259e4ea738d5f85461ed DIR parent 6cc93986398af05eca6969802f922576c6b37126 HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 8 Jun 2016 14:24:31 +0200 Merge branch 'master' of git.devuan.org:sdk/libdevuansdk Diffstat: A .gitmodules | 3 +++ M README.md | 55 +++++++++++++++++++++++++++++++ A libdevuansdk | 69 ++++++++++++++++++++++++++++++ A zuper | 1 + 4 files changed, 128 insertions(+), 0 deletions(-) --- DIR diff --git a/.gitmodules b/.gitmodules t@@ -0,0 +1,3 @@ +[submodule "zuper"] + path = zuper + url = https://github.com/dyne/zuper DIR diff --git a/README.md b/README.md t@@ -5,3 +5,58 @@ libdevuansdk is a shell script library intended to unify the use and creation of various functions spread throughout Devuan's various SDKs. For documentation, refer to the files in the `doc` directory. +======= +# Devuan's Simple Distro Kit - shared library + +This is a set of ZSh based scripts shared across other Devuan's SDK components to accomplish common tasks. + +All Devuan's SDK components are found here https://git.devuan.org/groups/sdk + +## Requirements + +Devuan's SDK is designed to be used interactively from a terminal as well +from shell scripts. It requires the following packages to be installed: + +``` +zsh debootstrap expect sudo +``` + +# Caveat + +This is an early release with limited functionality to facilitate the +import and maintainance of some packages that are core to Devuan. + +Some things may change in the immediate future. + +To support the development you are welcome to open issues on problems +and bugs you encounter, open merge requests of patches or simply +getting involved in other tasks evident on https://git.devuan.org + + +# Acknowledgments + +Devuan's SDK was originally conceived during a period of residency at +the Schumacher college in Dartington UK, greatly inspired by the +laborious and mindful atmosphere of its wonderful premises. + +The Devuan SDK is Copyright (C) 2015 by the Dyne.org Foundation + +Devuan SDK components are designed, written and maintained by: +- Ivan J. <parazyd@dyne.org> +- Denis Roio <jaromil@dyne.org> +- Enzo Nicosia <katolaz@freaknet.org> +- Fred Smith <fsmithred@gmail.com> + +This source code is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This software is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this source code. If not, see <http://www.gnu.org/licenses/>. + DIR diff --git a/libdevuansdk b/libdevuansdk t@@ -0,0 +1,69 @@ +#!/usr/bin/env zsh +# +# Copyright (C) 2012-2016 Dyne.org Foundation +# +# +# This source code is free software; you can redistribute it +# and/or modify it under the terms of the GNU Public License +# as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later +# version. +# +# This source code is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. Please refer to the GNU Public License for more +# details. +# +# You should have received a copy of the GNU Public License +# along with this source code; if not, write to: Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA +# 02139, USA. + +devuan_sdk_version=0.1 + +# export DOWSE_PREFIX and DOWSE_HOME to override +R=${SDK_PREFIX:-/usr/local/devuan-sdk} +H=${SDK_HOME:-$HOME/.devuan-sdk} +E=${SDK_CONF:-/etc/devuan-sdk} + +[[ -r $R ]] || { + print "Devuan SDK is not installed in: $R" + print "export SDK_PREFIX if installed on a different path" +} + + +######################## +## Load Zuper extensions +# conclude initialization +if [[ -r $R/zuper/zuper ]]; then + source $R/zuper/zuper +else source ./zuper/zuper; fi + +DEBUG=${DEBUG:-0} +QUIET=${QUIET:-0} +LOG=${LOG:-""} + +# path and debugging +vars+=(R H E) + +# source $R/zlibs/library + +# conclude initialization +if [[ -r $R/zuper/zuper.init ]]; then + source $R/zuper/zuper.init +else source ./zuper/zuper.init; fi + +# add all other dowse binaries to the path +path+=($R/bin) +rehash + + +# For gettext +TEXTDOMAIN=devuan + +notice "Loading Devuan SDK library v$devuan_sdk_version" + +# ... + +act "library succesfully loaded" DIR diff --git a/zuper b/zuper t@@ -0,0 +1 @@ +Subproject commit 5464a0f9d5e39120cdd4faa4eeb8ff4b7ec6bf06