mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* profiles/generate-profiles: reorganize cleaning and echo's
This commit is contained in:
parent
b1e0c1fee6
commit
d3bbfa8d3e
1 changed files with 6 additions and 8 deletions
|
@ -2,17 +2,16 @@
|
|||
# This script should be run during in the './debian/rules get-orig-source'
|
||||
# step.
|
||||
|
||||
rm -vf profiles/debian-* profiles/fedora-* profiles/redhat-* profiles/ubuntu-*
|
||||
if [ "$1" = "--clean" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for i in $(ls profiles/logos); do
|
||||
echo "Generating profile: $i-light"
|
||||
rm -f profiles/$i*
|
||||
if [ "$1" = "--clean" ]; then
|
||||
echo "Removing profiles for: $i"
|
||||
continue
|
||||
fi
|
||||
echo "Generating profiles for: $i"
|
||||
cat profiles/profile.skel > profiles/$i-light
|
||||
logo="`cat profiles/logos/$i`"
|
||||
sed -i "s/__LOGO__/$logo/" profiles/$i-light
|
||||
echo "Generating profile: $i-dark"
|
||||
cp profiles/$i-light profiles/$i-dark
|
||||
sed -i "s/ Wk/ Kw/g" profiles/$i-dark
|
||||
sed -i "s/kW/wK/g" profiles/$i-dark
|
||||
|
@ -23,7 +22,6 @@ for i in $(ls profiles/logos); do
|
|||
if echo "$desc" | grep -qs "light"; then
|
||||
y="k"
|
||||
fi
|
||||
echo "Generating profile: $i-$desc"
|
||||
cp profiles/$i-light profiles/$i-$desc
|
||||
sed -i "s/ Wk/ $x$y/g" profiles/$i-$desc
|
||||
sed -i "s/kW/$y$x/g" profiles/$i-$desc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue