none
This commit is contained in:
parent
b45377749d
commit
3d6730ef4d
1 changed files with 53 additions and 43 deletions
|
@ -1,28 +1,42 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Script to make a prototype recoll install directory from locally compiled
|
# Script to make a prototype recoll install directory from locally compiled
|
||||||
# software. *** Needs cygwin ***
|
# software. *** Needs msys or cygwin ***
|
||||||
|
|
||||||
##############
|
################################
|
||||||
# Local values (to be adjusted)
|
# Local values (to be adjusted)
|
||||||
|
|
||||||
# Target directory where we copy things.
|
# Target directory where we copy things.
|
||||||
DESTDIR=c:/recollinst
|
DESTDIR=c:/recollinst
|
||||||
|
|
||||||
# Recoll src/build tree
|
# Recoll src tree
|
||||||
RECOLL=c:/recoll/src
|
RCL=c:/recoll/src/
|
||||||
|
|
||||||
|
# Note: unrtf not under recolldeps because it's a clone from the
|
||||||
|
# original mercurial repository
|
||||||
UNRTF=c:/unrtf
|
UNRTF=c:/unrtf
|
||||||
|
|
||||||
|
# antiword is under recolldeps: it's not really maintained any more
|
||||||
|
# and has no public repository
|
||||||
ANTIWORD=c:/recolldeps/antiword
|
ANTIWORD=c:/recolldeps/antiword
|
||||||
|
|
||||||
CONFIGURATION=Debug
|
CONFIGURATION=Debug
|
||||||
PLATFORM=x64
|
PLATFORM=x64
|
||||||
|
|
||||||
LIBXAPIAN=c:/recolldeps/xapian/xapian-core-1.2.21/.libs/libxapian-22.dll
|
LIBXAPIAN=c:/recolldeps/xapian/xapian-core-1.2.21/.libs/libxapian-22.dll
|
||||||
LIBR=C:/recoll/src/windows/build-librecoll-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/librecoll.dll
|
|
||||||
GUIBIN=C:/recoll/src/build-recoll-win-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/recoll.exe
|
# Qt arch
|
||||||
RCLIDX=C:/recoll/src/windows/build-recollindex-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/recollindex.exe
|
QTA=Desktop_Qt_5_5_0_MinGW_32bit
|
||||||
RCLQ=C:/recoll/src/windows/build-recollq-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/recollq.exe
|
|
||||||
RCLS=C:/recoll/src/windows/build-rclstartw-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/rclstartw.exe
|
RCLW=$RCL/windows/
|
||||||
|
|
||||||
|
LIBR=$RCLW/build-librecoll-${QTA}-Debug/debug/librecoll.dll
|
||||||
|
GUIBIN=$RCL/src/build-recoll-win-${QTA}-Debug/debug/recoll.exe
|
||||||
|
RCLIDX=$RCLW/build-recollindex-${QTA}-Debug/debug/recollindex.exe
|
||||||
|
RCLQ=$RCLW/build-recollq-${QTA}-Debug/debug/recollq.exe
|
||||||
|
RCLS=$RCLW/build-rclstartw-${QTA}-Debug/debug/rclstartw.exe
|
||||||
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# Script:
|
# Script:
|
||||||
|
|
||||||
|
@ -35,42 +49,40 @@ fatal()
|
||||||
}
|
}
|
||||||
|
|
||||||
# checkcopy.
|
# checkcopy.
|
||||||
cc()
|
chkcp()
|
||||||
{
|
{
|
||||||
test -f $1 || fatal $1 does not exist
|
cp $@ || fatal cp $@ failed
|
||||||
cp $1 $2 || exit 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
copyxapian()
|
copyxapian()
|
||||||
{
|
{
|
||||||
cc $LIBXAPIAN $DESTDIR
|
chkcp $LIBXAPIAN $DESTDIR
|
||||||
}
|
}
|
||||||
|
|
||||||
copyrecoll()
|
copyrecoll()
|
||||||
{
|
{
|
||||||
# bindir=$RECOLL/windows/$PLATFORM/$CONFIGURATION/
|
# bindir=$RCL/windows/$PLATFORM/$CONFIGURATION/
|
||||||
# cc $bindir/recollindex.exe $DESTDIR
|
# chkcp $bindir/recollindex.exe $DESTDIR
|
||||||
# cc $bindir/recollq.exe $DESTDIR
|
# chkcp $bindir/recollq.exe $DESTDIR
|
||||||
# cc $bindir/pthreadVC2.dll $DESTDIR
|
# chkcp $bindir/pthreadVC2.dll $DESTDIR
|
||||||
cc $LIBR $DESTDIR
|
chkcp $LIBR $DESTDIR
|
||||||
cc $GUIBIN $DESTDIR
|
chkcp $GUIBIN $DESTDIR
|
||||||
cc $RCLIDX $DESTDIR
|
chkcp $RCLIDX $DESTDIR
|
||||||
cc $RCLQ $DESTDIR
|
chkcp $RCLQ $DESTDIR
|
||||||
cc $RCLS $DESTDIR
|
chkcp $RCLS $DESTDIR
|
||||||
|
|
||||||
cc $RECOLL/sampleconf/fields $DESTDIR/Share/examples
|
chkcp $RCL/sampleconf/fields $DESTDIR/Share/examples
|
||||||
cc $RECOLL/sampleconf/fragbuts.xml $DESTDIR/Share/examples
|
chkcp $RCL/sampleconf/fragbuts.xml $DESTDIR/Share/examples
|
||||||
cc $RECOLL/windows/mimeconf $DESTDIR/Share/examples
|
chkcp $RCL/windows/mimeconf $DESTDIR/Share/examples
|
||||||
cc $RECOLL/sampleconf/mimemap $DESTDIR/Share/examples
|
chkcp $RCL/sampleconf/mimemap $DESTDIR/Share/examples
|
||||||
cc $RECOLL/windows/mimeview $DESTDIR/Share/examples
|
chkcp $RCL/windows/mimeview $DESTDIR/Share/examples
|
||||||
cc $RECOLL/sampleconf/recoll.conf $DESTDIR/Share/examples
|
chkcp $RCL/sampleconf/recoll.conf $DESTDIR/Share/examples
|
||||||
cc $RECOLL/sampleconf/recoll.qss $DESTDIR/Share/examples
|
chkcp $RCL/sampleconf/recoll.qss $DESTDIR/Share/examples
|
||||||
|
|
||||||
cc $RECOLL/python/recoll/recoll/rclconfig.py $FILTERS
|
chkcp $RCL/python/recoll/recoll/rclconfig.py $FILTERS
|
||||||
|
chkcp $RCL/filters/* $FILTERS
|
||||||
cp $RECOLL/filters/* $FILTERS || fatal Copy Filters failed
|
chkcp $RCL/qtgui/mtpics/* $DESTDIR/Share/images
|
||||||
cp $RECOLL/qtgui/mtpics/* $DESTDIR/Share/images || fatal copy images
|
chkcp $RCL/qtgui/i18n/*.qm $DESTDIR/Share/translations
|
||||||
cp $RECOLL/qtgui/i18n/*.qm $DESTDIR/Share/translations
|
|
||||||
}
|
}
|
||||||
|
|
||||||
copyantiword()
|
copyantiword()
|
||||||
|
@ -78,26 +90,24 @@ copyantiword()
|
||||||
bindir=$ANTIWORD/Win32-only/$PLATFORM/$CONFIGURATION
|
bindir=$ANTIWORD/Win32-only/$PLATFORM/$CONFIGURATION
|
||||||
|
|
||||||
test -d $Filters/Resources || mkdir -p $FILTERS/Resources || exit 1
|
test -d $Filters/Resources || mkdir -p $FILTERS/Resources || exit 1
|
||||||
|
chkcp $bindir/antiword.exe $FILTERS
|
||||||
cc $bindir/antiword.exe $FILTERS
|
chkcp $ANTIWORD/Resources/* $FILTERS/Resources
|
||||||
|
|
||||||
cp $ANTIWORD/Resources/* $FILTERS/Resources || exit 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
copyunrtf()
|
copyunrtf()
|
||||||
{
|
{
|
||||||
bindir=$UNRTF/Windows/$PLATFORM/$CONFIGURATION
|
bindir=$UNRTF/Windows/$PLATFORM/$CONFIGURATION
|
||||||
|
|
||||||
cc $bindir/unrtf.exe $FILTERS
|
|
||||||
|
|
||||||
test -d $FILTERS/Share || mkdir -p $FILTERS/Share || exit 1
|
test -d $FILTERS/Share || mkdir -p $FILTERS/Share || exit 1
|
||||||
cp $UNRTF/outputs/*.conf $FILTERS/Share || exit 1
|
chkcp $bindir/unrtf.exe $FILTERS
|
||||||
cc $UNRTF/outputs/SYMBOL.charmap $FILTERS/Share
|
chkcp $UNRTF/outputs/*.conf $FILTERS/Share
|
||||||
|
chkcp $UNRTF/outputs/SYMBOL.charmap $FILTERS/Share
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for d in doc examples filters images translations; do
|
for d in doc examples filters images translations; do
|
||||||
test -d $DESTDIR/Share/$d || mkdir -p $DESTDIR/Share/$d || exit 1
|
test -d $DESTDIR/Share/$d || mkdir -p $DESTDIR/Share/$d || \
|
||||||
|
fatal mkdir $d failed
|
||||||
done
|
done
|
||||||
|
|
||||||
copyxapian
|
copyxapian
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue