]> git.armaanb.net Git - asd-repo.git/commitdiff
First commit
authorArmaan Bhojwani <me@armaanb.net>
Mon, 22 Feb 2021 15:20:50 +0000 (10:20 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 22 Feb 2021 15:31:33 +0000 (10:31 -0500)
LICENSE [new file with mode: 0644]
README [new file with mode: 0644]
kiss-mail/build [new file with mode: 0755]
kiss-mail/checksums [new file with mode: 0644]
kiss-mail/files/kiss-mail [new file with mode: 0755]
kiss-mail/sources [new file with mode: 0644]
kiss-mail/version [new file with mode: 0644]

diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..5c98fa3
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,20 @@
+Armaan's KISS repo
+Copyright © 2021 Armaan Bhojwani <me@armaanb.net>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
+OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..b93b48f
--- /dev/null
+++ b/README
@@ -0,0 +1,3 @@
+My KISS Linux (https://kiss.armaanb.net) repo
+
+MIT License
diff --git a/kiss-mail/build b/kiss-mail/build
new file mode 100755 (executable)
index 0000000..614adda
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+install -Dm755 -t "$1/usr/bin" kiss-mail
diff --git a/kiss-mail/checksums b/kiss-mail/checksums
new file mode 100644 (file)
index 0000000..1b4b915
--- /dev/null
@@ -0,0 +1 @@
+a367d0c5599ccaf1b5fe9f7a65d23cfc8d87ff36759473ddd9aa91bd7aea0358
diff --git a/kiss-mail/files/kiss-mail b/kiss-mail/files/kiss-mail
new file mode 100755 (executable)
index 0000000..e6574b3
--- /dev/null
@@ -0,0 +1,31 @@
+#!/usr/bin/sh -e
+
+get_mail() {
+  { IFS=:; set -- $KISS_PATH; unset IFS; }
+  i=0
+  for repo do
+    git_root=$(git -C ${repo} rev-parse --show-toplevel)
+    if [ -f ${git_root}/update ]; then
+      shortlog=$(git -C ${git_root} log --pretty=oneline --follow -- update)
+      
+      while IFS= read -r line; do
+        hash=$(echo ${line} | cut -d ' ' -f 1)
+        git -C ${git_root} show ${hash}:update | tail -n +2 > /tmp/kiss-mail
+
+        printf '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n'
+        printf %s $((i = i + 1))
+        printf "\n"
+        git -C ${git_root} show -s ${hash}
+        printf '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n'
+        /tmp/kiss-mail
+        printf "\n\n"
+
+      done << EOF
+      ${shortlog}
+EOF
+    fi
+  done
+}
+
+[ -z ${PAGER} ] || pager_l=${PAGER} && pager_l="less"
+get_mail | ${pager_l}
diff --git a/kiss-mail/sources b/kiss-mail/sources
new file mode 100644 (file)
index 0000000..00145c2
--- /dev/null
@@ -0,0 +1 @@
+files/kiss-mail
diff --git a/kiss-mail/version b/kiss-mail/version
new file mode 100644 (file)
index 0000000..f35ed48
--- /dev/null
@@ -0,0 +1 @@
+1.0 1