From ece26b91621e21fb41b6fab8517d1d3b66052ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Tue, 24 Mar 2020 18:31:55 +0100 Subject: [PATCH] Automate the update of share/backgrounds/kali-16x9/ --- Makefile | 1 + bin/update-kali-16x9 | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100755 bin/update-kali-16x9 diff --git a/Makefile b/Makefile index 0b56085d..a987c086 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ SUBDIRS=emblems kali-logos build: + bin/update-kali-16x9 $(foreach SUBDIR,$(SUBDIRS),$(MAKE) -C $(SUBDIR) build &&) true clean: diff --git a/bin/update-kali-16x9 b/bin/update-kali-16x9 new file mode 100755 index 00000000..13165b26 --- /dev/null +++ b/bin/update-kali-16x9 @@ -0,0 +1,10 @@ +#!/bin/sh + +TARGET_DIR=share/backgrounds/kali-16x9 +rm $TARGET_DIR/*.png + +for f in share/backgrounds/kali/*-16x9.png; do + target=$(basename $f) + target="${target%%-16x9.png}.png" + ln -vsrf $f $TARGET_DIR/$target +done