1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

* deploy data files into FRS to ease load on projectweb

This commit is contained in:
Reinhard Pointner 2012-10-11 13:50:37 +00:00
parent f50e0450c6
commit 2c459bdbe9
3 changed files with 17 additions and 6 deletions

View File

@ -60,7 +60,7 @@ def gz(file, lines) {
// LOAD osdb-imdb.txt (already verified data)
def imdb_tsv = new File("website/data/osdb-imdb.txt")
def imdb_tsv = new File("osdb-imdb.txt")
def imdb = [].asSynchronized() // thread-safe list
imdb_tsv.getText('UTF-8').eachLine{

View File

@ -27,6 +27,9 @@
<property name="deploy.release" value="web.sourceforge.net:/home/frs/project/f/fi/filebot/filebot" />
<property name="deploy.website" value="web.sourceforge.net:htdocs" />
<property name="deploy.data" value="web.sourceforge.net:htdocs/data" />
<property name="deploy.data.frs" value="web.sourceforge.net:/home/frs/project/f/fi/filebot/data" />
<target name="jar" depends="build">
<!-- create dist dir -->
@ -551,8 +554,6 @@
<include name="*.png" />
<include name="*.ico" />
<include name="images/**" />
<include name="data/**" />
<include name="scripts/**" />
<include name="screenshots/**" />
</fileset>
</copy>
@ -572,9 +573,15 @@
<target name="upload-data" depends="login">
<scp todir="${sf.user}:${sf.password}@${deploy.website}" trust="yes" verbose="true">
<fileset dir="${dir.website}">
<include name="data/**" />
<scp todir="${sf.user}:${sf.password}@${deploy.data}" trust="yes" verbose="true">
<fileset dir="${dir.website}/data">
<include name=".htaccess" />
<include name="*.txt" />
</fileset>
</scp>
<scp todir="${sf.user}:${sf.password}@${deploy.data.frs}" trust="yes" verbose="true">
<fileset dir="${dir.website}/data">
<include name="*.gz" />
</fileset>
</scp>
</target>

4
website/data/.htaccess Normal file
View File

@ -0,0 +1,4 @@
options +indexes
redirect 301 /data/movies.txt.gz http://sourceforge.net/projects/filebot/files/data/movies.txt.gz/download
redirect 301 /data/series.list.gz http://sourceforge.net/projects/filebot/files/data/series.list.gz/download