mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-25 09:18:51 -05:00
* deploy data files into FRS to ease load on projectweb
This commit is contained in:
parent
f50e0450c6
commit
2c459bdbe9
@ -60,7 +60,7 @@ def gz(file, lines) {
|
|||||||
|
|
||||||
|
|
||||||
// LOAD osdb-imdb.txt (already verified data)
|
// 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
|
def imdb = [].asSynchronized() // thread-safe list
|
||||||
|
|
||||||
imdb_tsv.getText('UTF-8').eachLine{
|
imdb_tsv.getText('UTF-8').eachLine{
|
||||||
|
17
build.xml
17
build.xml
@ -27,6 +27,9 @@
|
|||||||
<property name="deploy.release" value="web.sourceforge.net:/home/frs/project/f/fi/filebot/filebot" />
|
<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.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">
|
<target name="jar" depends="build">
|
||||||
<!-- create dist dir -->
|
<!-- create dist dir -->
|
||||||
@ -551,8 +554,6 @@
|
|||||||
<include name="*.png" />
|
<include name="*.png" />
|
||||||
<include name="*.ico" />
|
<include name="*.ico" />
|
||||||
<include name="images/**" />
|
<include name="images/**" />
|
||||||
<include name="data/**" />
|
|
||||||
<include name="scripts/**" />
|
|
||||||
<include name="screenshots/**" />
|
<include name="screenshots/**" />
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
@ -572,9 +573,15 @@
|
|||||||
|
|
||||||
|
|
||||||
<target name="upload-data" depends="login">
|
<target name="upload-data" depends="login">
|
||||||
<scp todir="${sf.user}:${sf.password}@${deploy.website}" trust="yes" verbose="true">
|
<scp todir="${sf.user}:${sf.password}@${deploy.data}" trust="yes" verbose="true">
|
||||||
<fileset dir="${dir.website}">
|
<fileset dir="${dir.website}/data">
|
||||||
<include name="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>
|
</fileset>
|
||||||
</scp>
|
</scp>
|
||||||
</target>
|
</target>
|
||||||
|
4
website/data/.htaccess
Normal file
4
website/data/.htaccess
Normal 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
|
Loading…
Reference in New Issue
Block a user