Merge branch 'master' of git.devuan.org:sdk/libdevuansdk

This commit is contained in:
parazyd 2016-06-08 14:24:31 +02:00
commit a0376ae65b
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
4 changed files with 128 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "zuper"]
path = zuper
url = https://github.com/dyne/zuper

View File

@ -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/>.

69
libdevuansdk Normal file
View File

@ -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"

1
zuper Submodule

@ -0,0 +1 @@
Subproject commit 5464a0f9d5e39120cdd4faa4eeb8ff4b7ec6bf06