just sdk.init is enough to load lib

This commit is contained in:
Jaromil 2016-06-15 13:41:59 +02:00
parent 9f282f6075
commit 90184d55d1
2 changed files with 4 additions and 33 deletions

33
sdk
View File

@ -1,33 +0,0 @@
#!/usr/bin/env zsh
#
# Copyright (c) 2016 Dyne.org Foundation
# libdevuansdk is written and maintained by
# Jaromil <jaromil@dyne.org>
# KatolaZ <katolaz@freaknet.org>
# parazyd <parazyd@dyne.org>
#
# This file is part of libdevuansdk
#
# 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/>.
setopt pushdsilent
# export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
########################
## Load Zuper extensions
source $SDK_LIB/zuper/zuper
vars+=(SDK_PREFIX SDK_HOME SDK_CONF SDK_LIB SDK_ARM SDK_VM SDK_LIVE)
notice "Loading Devuan SDK library v$devuan_sdk_version"
vars+=(libdevuansdk_version os release version mirror section)

View File

@ -23,6 +23,10 @@
fn libdevuansdk.init
libdevuansdk_version=0.1
notice "Initializing Devuan SDK library v$libdevuansdk_version"
vars+=(SDK_PREFIX SDK_HOME SDK_CONF SDK_LIB SDK_ARM SDK_VM SDK_LIVE)
vars+=(libdevuansdk_version os release version mirror section)
# defaults if less sofisticated dir
SDK_HOME=${SDK_HOME:-$SDK_PREFIX}