Skip to content

Commit

Permalink
Merge pull request #9 from hanleybrand/master
Browse files Browse the repository at this point in the history
batch file that does the whole tmThemes dir
  • Loading branch information
denofevil committed Feb 14, 2013
2 parents 362afd3 + fe6bccd commit 0db9e0f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
.idea
.DS_Store
colorSchemeTool.log
16 changes: 16 additions & 0 deletions convert.sh
@@ -0,0 +1,16 @@
#!/bin/bash

FILES=./tmThemes/*.tmTheme
OUTDIR=./intellijThemes/

shopt -s nullglob

for FILE in $FILES
do
FN="${FILE##*/}"
DIR="${FILE:0:${#FILE} - ${#FN}}"
BASE="${FN%.[^.]*}"
EXT="${FN:${#BASE} + 1}"
echo converting $DIR$FN$EXT to $OUTDIR$BASE.xml ...
python colorSchemeTool.py $FILE $OUTDIR$BASE.xml >> ./colorSchemeTool.log
done

0 comments on commit 0db9e0f

Please sign in to comment.