You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
653 B
23 lines
653 B
3 years ago
|
#!/bin/sh
|
||
|
#
|
||
|
# RPM filetrigger for branding icons.
|
||
|
#
|
||
|
# Copyright (C) 2021 Artem Proskurnev <tema@proskurnevs.ru>
|
||
|
#
|
||
|
# This program 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 2 of the License, or
|
||
|
# (at your option) any later version.
|
||
|
|
||
|
for i in $(egrep "(basealt.png|basealt.svg|altlinux.png|altlinux.svg)")
|
||
|
do
|
||
|
f=$(basename $i)
|
||
|
d=$(dirname $i)
|
||
|
suff=$(echo $f | egrep -o "(png|svg)")
|
||
|
f=$(echo $f | egrep -o "(altlinux|basealt)")
|
||
|
k=$d/kometa.$suff
|
||
|
if [ -e $k ]
|
||
|
then
|
||
|
cp -f $k $d/$f.$suff
|
||
|
fi
|
||
|
done
|