Skip to content

Commit

Permalink
Convert original solarized theme to YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
sbakker committed Nov 30, 2017
1 parent eda9a8d commit 505d589
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions convert_solarized.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash -e
#
# Convert original solarized themes to YAML-based themes.
#
# Usage:
#
# convert_solarized.sh [colors-dir]
#
# Default "colors-dir" is "gnome-terminal-colors-solarized/colors"
#
# Copyright (c) 2014-2017 Steven Bakker; All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself. See "perldoc perlartistic".
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

case $# in
0) topdir=gnome-terminal-colors-solarized/colors ;;
1) topdir=$1 ;;
*) echo "usage: $0 [colors-dir]" >&2; exit 1 ;;
esac

currdir=$(pwd)

cd $topdir

for dir in *
do
if [[ -d $dir && -f $dir/palette ]]; then
dest=$currdir/colors/solarized-$base
mkdir -p $dest
echo "converting $topdir/$dir"
$currdir/src/theme_to_yaml.pl $dir > $dest/colors.yaml
fi
done

0 comments on commit 505d589

Please sign in to comment.