about summary refs log tree commit diff
path: root/diff-deps.fish
diff options
context:
space:
mode:
Diffstat (limited to 'diff-deps.fish')
-rwxr-xr-xdiff-deps.fish38
1 files changed, 0 insertions, 38 deletions
diff --git a/diff-deps.fish b/diff-deps.fish
deleted file mode 100755
index 9ad788ece842..000000000000
--- a/diff-deps.fish
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright (C) 2016-2017  Vincent Ambo <mail@tazj.in>
-#
-# This file is part of Kontemplate.
-#
-# Kontemplate 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.
-
-#!/usr/bin/env fish
-
-function get_remote_master
-    git ls-remote "$argv[1]" | \
-        grep 'refs/heads/master' | \
-        awk '{print $1}'
-end
-
-function list_deps
-    grep '"git"' -B2 kontemplate.frm | \
-    grep -P -o '(?<=silo: ")https://.+(?=")'
-end
-
-function diff_dep
-    set -l current (grep -B1 "$argv[1]" kontemplate.frm | grep -P -o '(?<=hash: ").+(?=")')
-    set -l remote (get_remote_master "$argv[1]")
-
-    if [ $current != $remote ]
-        echo "$argv[1]"
-        echo -e "current:\t$current"
-        echo -e "remote:\t\t$remote\n"
-    else
-        echo -e "$argv[1] up to date\n"
-    end
-end
-
-for dep in (list_deps)
-    diff_dep $dep
-end