diff options
author | 2015-10-19 16:23:13 +0200 | |
---|---|---|
committer | 2015-10-19 16:23:54 +0200 | |
commit | e53cc5b2dd9f994c9810142a0b2ea38f06b322da (patch) | |
tree | e457e5d94603002dae20f7b21807f895b4ac023c /overlay-cleanup-tool | |
parent | update gpaste (diff) | |
download | keruspe-master.tar.gz keruspe-master.tar.bz2 keruspe-master.zip |
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Diffstat (limited to 'overlay-cleanup-tool')
-rwxr-xr-x | overlay-cleanup-tool | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/overlay-cleanup-tool b/overlay-cleanup-tool deleted file mode 100755 index 8bc86307..00000000 --- a/overlay-cleanup-tool +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -REPOSITORIES_PATH="/var/paludis/repositories" -VDB_PATH="/var/db/pkg" - -find_duplicates() { - local first_path=${REPOSITORIES_PATH}/${1} - local second_path=${REPOSITORIES_PATH}/${2} - pushd ${first_path} &>/dev/null - echo "Duplicate packages between ${1} and ${2}:" - echo - for i in $(find . -name '*.ebuild' | sort -u); do - ls ${second_path}/${i} &>/dev/null && echo ${i} | sed 's:./\([^/]*\)/[^/]*/\([^/]*\).ebuild:\1/\2:' - done - echo - popd &>/dev/null -} - -find_unused() { - local repo_path=${REPOSITORIES_PATH}/${1} - pushd ${repo_path} &>/dev/null - echo "Unused packages in ${1}:" - echo - for i in $(find . -name '*.ebuild' | sed 's:./\([^/]*\)/[^/]*/\([^/]*\).ebuild:\1/\2:' | sort -u); do - ls ${VDB_PATH}/${i} &>/dev/null || echo ${i} - done - echo - popd &>/dev/null -} - -main() { - for i in gnome gentoo systemd; do - find_duplicates ${1} ${i} - done - find_unused systemd | grep -Ev '(avahi|/systemd|networkmanager|wpa_supplicant|bootchart2)' - find_unused ${1} | grep -Ev '(bomb-her-man|gnome-paint|librabbitmq|gpaste|germinal)' -} - -main keruspe - |