aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-20 14:54:11 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-20 14:54:11 +0000
commit2e94bad0effca178ba62a118c1dd854f1feb804b (patch)
treed0fcaf6365323a222c122f21d4963675ce8f972f /kiss
parent636c123530bc34af82f60f41c19ce8208928bfb0 (diff)
downloadcpt-2e94bad0effca178ba62a118c1dd854f1feb804b.tar.gz
docs: update
FossilOrigin-Name: 91dea8f7f23d7ec593eb6a8173f6070caad676f0679045584b8e860191097d15
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss18
1 files changed, 12 insertions, 6 deletions
diff --git a/kiss b/kiss
index 5d27253..efc6f01 100755
--- a/kiss
+++ b/kiss
@@ -55,7 +55,8 @@ pkg_find() {
# Find the repository containing a package.
# Searches installed packages if the package is absent
# from the repositories.
- # shellcheck disable=2046,2086 # See [1]
+ # See [1] at top of script.
+ # shellcheck disable=2046,2086
set -- "$1" $(IFS=:; find $KISS_PATH "$sys_db" -maxdepth 1 -name "$1")
# A package may also not be found due to a repository not being
@@ -343,7 +344,8 @@ pkg_build() {
explicit=$(echo "$explicit" | sed "s/ $pkg / /g")
done
- # shellcheck disable=2046,2086 # See [1]
+ # See [1] at top of script.
+ # shellcheck disable=2046,2086
set -- $deps $explicit
log "Building: $*"
@@ -379,7 +381,8 @@ pkg_build() {
# Remove the now installed package from the build
# list. No better way than using 'sed' in POSIX 'sh'.
- # shellcheck disable=2046,2086 # See [1]
+ # See [1] at top of script.
+ # shellcheck disable=2046,2086
set -- $(echo " $* " | sed "s/ $pkg / /")
}
}
@@ -465,7 +468,8 @@ pkg_build() {
log "Successfully built package(s)"
# Turn the explicit packages into a 'list'.
- # shellcheck disable=2046,2086 # See [1]
+ # See [1] at top of script.
+ # shellcheck disable=2046,2086
set -- $explicit
# Only ask for confirmation if more than one package needs to be installed.
@@ -725,7 +729,8 @@ pkg_updates() {
log "Updating repositories"
# Create a list of all repositories.
- # shellcheck disable=2046,2086 # See [1]
+ # See [1] at top of script.
+ # shellcheck disable=2046,2086
{ IFS=:; set -- $KISS_PATH; IFS=$old_ifs; }
# Update each repository in '$KISS_PATH'. It is assumed that
@@ -815,7 +820,8 @@ pkg_updates() {
pkg_update=1
# Build all packages requiring an update.
- # shellcheck disable=2046,2086 # See [1]
+ # See [1] at top of script.
+ # shellcheck disable=2046,2086
pkg_build $outdated
log "Updated all packages"