2017-10-24 00:45:08 +13:00
|
|
|
#!/bin/bash -
|
2015-09-29 22:17:03 +13:00
|
|
|
|
|
|
|
|
|
|
|
# echo "AVR-GCC"
|
|
|
|
# elf="main.elf"
|
|
|
|
# c="main.c"
|
|
|
|
# gcc="avr-gcc"
|
|
|
|
# options=( "-mmcu=atmega128" "-Wall" -"Os" )
|
|
|
|
# command=( "$gcc" "${options[@]}" -o "$elf" "$c" )
|
|
|
|
# # execute it:
|
|
|
|
# "${command[@]}"
|
|
|
|
|
2017-10-16 01:30:50 +13:00
|
|
|
dirSrc=/usr/share/icons/Numix/
|
|
|
|
|
|
|
|
dirDest=$(pwd)
|
|
|
|
|
2015-09-29 22:17:03 +13:00
|
|
|
name=$1
|
|
|
|
echo $name
|
2017-10-16 01:30:50 +13:00
|
|
|
# cd $(dirname "$0")
|
|
|
|
cd $dirSrc
|
2015-09-29 22:17:03 +13:00
|
|
|
pwd
|
|
|
|
for i in $(find -name $name.svg); \
|
|
|
|
do echo $i; \
|
2017-10-16 01:30:50 +13:00
|
|
|
cp --parents $i $dirDest/NumixMsk; \
|
2017-10-24 00:45:08 +13:00
|
|
|
done
|
|
|
|
|
|
|
|
cd $dirDest
|
|
|
|
|
|
|
|
# Clean strange folders
|
|
|
|
echo "Cleaning strange folders"
|
|
|
|
echo "------------------------"
|
|
|
|
for i in 16 22 24 32 48 64;
|
|
|
|
do
|
|
|
|
|
|
|
|
if [ -d "NumixMsk/$i/" ]; then
|
|
|
|
echo "NumixMsk/$i/"
|
|
|
|
cp -r "NumixMsk/$i/*" "NumixMsk/$(echo $i)x$(echo $i)/"
|
|
|
|
rm -R "NumixMsk/$i/"
|
|
|
|
fi
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
# echo $dirDest
|
|
|
|
# # Move 256 to scalable
|
|
|
|
# if [ -d "NumixMsk/256x256/" ]; then
|
|
|
|
#
|
|
|
|
# echo "Move 256x256 to scalable"
|
|
|
|
# echo "------------------------"
|
|
|
|
# cp -r NumixMsk/256x256/* "NumixMsk/scalable/"
|
|
|
|
# rm -R "NumixMsk/256x256/"
|
|
|
|
# fi
|