summary refs log tree commit diff
path: root/language_updater.sh
diff options
context:
space:
mode:
authorClayton G. Hobbs <clay@lakeserv.net>2015-12-27 14:40:53 -0500
committerClayton G. Hobbs <clay@lakeserv.net>2015-12-27 14:40:53 -0500
commit25ebc8fe8b34939507d741636a11816cb4f11db2 (patch)
tree38b21450fd2eef723fd59ea16dafe02dd6220226 /language_updater.sh
parent0d67d50252849eca6e659f2daf20616542ec2a05 (diff)
Moved paths to Config class
Paths of important files and directories are part of the program's
configuration, no?

We're making better use of XDG paths now.  Only configuration-y things
go in $XDG_CONFIG_HOME now, with cache-y and data-y things going in the
appropriate places instead of just being crammed in with configuration.
Diffstat (limited to 'language_updater.sh')
-rwxr-xr-xlanguage_updater.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/language_updater.sh b/language_updater.sh
index ec5c868..5a2c232 100755
--- a/language_updater.sh
+++ b/language_updater.sh
@@ -1,10 +1,11 @@
 #!/bin/bash
 
-blatherdir=~/.config/blather
-sentences=$blatherdir/sentences.corpus
+blatherdir=~/.config/kaylee
+blatherdatadir=~/.local/share/kaylee
+blathercachedir=~/.cache/kaylee
+sentences=$blatherdatadir/sentences.corpus
 sourcefile=$blatherdir/commands.conf
-langdir=$blatherdir/language
-tempfile=$blatherdir/url.txt
+tempfile=$blathercachedir/url.txt
 lmtoolurl=http://www.speech.cs.cmu.edu/cgi-bin/tools/lmtool/run
 
 cd $blatherdir
@@ -25,7 +26,7 @@ curl -C - -O $(cat $tempfile).dic
 curl -C - -O $(cat $tempfile).lm
 
 # mv em to the right name/place
-mv *.dic $langdir/dic
-mv *.lm $langdir/lm
+mv *.dic $blatherdatadir/dic
+mv *.lm $blatherdatadir/lm
 
 rm $tempfile