Automate the update of share/backgrounds/kali-16x9/

This commit is contained in:
Raphaël Hertzog 2020-03-24 18:31:55 +01:00
parent 47ffe4b842
commit ece26b9162
2 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,7 @@
SUBDIRS=emblems kali-logos
build:
bin/update-kali-16x9
$(foreach SUBDIR,$(SUBDIRS),$(MAKE) -C $(SUBDIR) build &&) true
clean:

10
bin/update-kali-16x9 Executable file
View File

@ -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