aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-14 16:06:46 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-14 16:06:46 +0000
commit73aecebfc38dc0b22d11c6873b23d8fc6893c22a (patch)
treec93363745f896456b289f5ac342a629765f65553 /kiss
parent1cc96733c2278c8fe6fa46ed0a98796caa48d012 (diff)
downloadcpt-73aecebfc38dc0b22d11c6873b23d8fc6893c22a.tar.gz
kiss: comment support in sources
FossilOrigin-Name: d8eca52e84fe3fb9ec039b463dd33919babde6106187fc95268e9ca300c65172
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss11
1 files changed, 6 insertions, 5 deletions
diff --git a/kiss b/kiss
index ed927a1..3a11208 100755
--- a/kiss
+++ b/kiss
@@ -173,8 +173,11 @@ pkg_sources() {
repo_dir=$(pkg_find "$1")
while read -r src dest || [ "$src" ]; do
+ # Comment.
+ if [ -z "${src##\#*}" ]; then :
+
# Remote source (cached).
- if [ -f "${src##*/}" ]; then
+ elif [ -f "${src##*/}" ]; then
log "$1" "Found cached source '${src##*/}'"
# Remote git repository.
@@ -235,10 +238,8 @@ pkg_extract() {
die "Commit hash ${src##*#} doesn't exist"
;;
- # Git repository.
- git+*)
- continue
- ;;
+ # Git repository or comment.
+ git+*|\#*) continue ;;
# Only 'tar' archives are currently supported for extraction.
# Any other file-types are simply copied to '$mak_dir' which