get rid of scripts not used any more
This commit is contained in:
parent
d64c6ef895
commit
b01c25eaba
@ -1,171 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2005 J.F.Dockes
|
||||
# A shell-script to make a recoll source distribution
|
||||
|
||||
fatal() {
|
||||
echo $*
|
||||
exit 1
|
||||
}
|
||||
usage() {
|
||||
echo 'Usage: makescrdist.sh -t -s do_it'
|
||||
echo ' -t : no tagging'
|
||||
echo ' -s : snapshot release: use date instead of VERSION'
|
||||
echo ' -s implies -t'
|
||||
exit 1
|
||||
}
|
||||
tagtopsvn() {
|
||||
(cd ..; svn copy -m "Release $version tagged" . $SVNREPOS/tags/$1) \
|
||||
|| fatal tag failed
|
||||
}
|
||||
tagtophg() {
|
||||
hg tag -m "Release $version tagged" $1 || fatal tag failed
|
||||
}
|
||||
tagexists() {
|
||||
hg tags | cut -d' ' -f 1 | egrep '^'$1'$'
|
||||
}
|
||||
tagtop() {
|
||||
tagtophg $*
|
||||
}
|
||||
|
||||
#set -x
|
||||
|
||||
TAR=${TAR-/bin/tar}
|
||||
|
||||
#VCCMD=svn
|
||||
#SVNREPOS=svn+ssh://y/home/subversion/recoll/
|
||||
|
||||
VCCMD=hg
|
||||
|
||||
if test ! -d qtgui;then
|
||||
echo "Should be executed in the master recoll directory"
|
||||
exit 1
|
||||
fi
|
||||
targetdir=${targetdir-/tmp}
|
||||
dotag=${dotag-yes}
|
||||
snap=${snap-no}
|
||||
|
||||
if ! test configure -nt configure.ac -a configure -nt VERSION ;then
|
||||
set -x
|
||||
rm -f configure
|
||||
autoconf || exit 1
|
||||
set +x
|
||||
fi
|
||||
|
||||
while getopts ts o
|
||||
do case "$o" in
|
||||
t) dotag=no;;
|
||||
s) snap=yes;dotag=no;;
|
||||
[?]) usage;;
|
||||
esac
|
||||
done
|
||||
shift `expr $OPTIND - 1`
|
||||
|
||||
test $dotag = "yes" -a $snap = "yes" && usage
|
||||
|
||||
test $# -eq 1 || usage
|
||||
|
||||
echo dotag $dotag snap $snap
|
||||
|
||||
if test $snap = yes ; then
|
||||
# The id would be nicer but it's not increasing which is a problem for
|
||||
# the exp package repo
|
||||
# version=`hg id | awk '{print $1}'`
|
||||
version=`hg summary | head -1 | awk -F: '{print $2}' | sed -e 's/ //g'`
|
||||
versionforcvs=$version
|
||||
TAG=""
|
||||
else
|
||||
version=`cat VERSION`
|
||||
versionforcvs=`echo $version | sed -e 's/\./_/g'`
|
||||
TAG="RECOLL_$versionforcvs"
|
||||
fi
|
||||
|
||||
if test "$dotag" = "yes" ; then
|
||||
echo Creating AND TAGGING version $versionforcvs
|
||||
tagexists $TAG && fatal "Tag $TAG already exists"
|
||||
else
|
||||
echo Creating version $versionforcvs, no tagging
|
||||
fi
|
||||
sleep 2
|
||||
|
||||
editedfiles=`$VCCMD status . | egrep -v '^\?'`
|
||||
if test "$dotag" = "yes" -a ! -z "$editedfiles"; then
|
||||
fatal "Edited files exist: " $editedfiles
|
||||
fi
|
||||
|
||||
|
||||
case $version in
|
||||
*.*.*) releasename=recoll-$version;;
|
||||
*) releasename=betarecoll-$version;;
|
||||
esac
|
||||
|
||||
topdir=$targetdir/$releasename
|
||||
if test ! -d $topdir ; then
|
||||
mkdir $topdir || exit 1
|
||||
else
|
||||
echo "Removing everything under $topdir Ok ? (y/n)"
|
||||
read rep
|
||||
if test $rep = 'y';then
|
||||
rm -rf $topdir/*
|
||||
fi
|
||||
fi
|
||||
|
||||
################################### Documentation
|
||||
###### Html doc
|
||||
RECOLLDOC=${RECOLLDOC:=doc/user}
|
||||
(cd $RECOLLDOC; make) || exit 1
|
||||
|
||||
###### Text Doc
|
||||
chmod +w README INSTALL
|
||||
cat <<EOF > README
|
||||
|
||||
More documentation can be found in the doc/ directory or at http://www.recoll.org
|
||||
|
||||
|
||||
EOF
|
||||
cat <<EOF > INSTALL
|
||||
|
||||
More documentation can be found in the doc/ directory or at http://www.recoll.org
|
||||
|
||||
|
||||
EOF
|
||||
|
||||
echo "Dumping html documentation to text files"
|
||||
links -dump ${RECOLLDOC}/usermanual.html >> README
|
||||
|
||||
links -dump ${RECOLLDOC}/RCL.INSTALL.html >> INSTALL
|
||||
links -dump ${RECOLLDOC}/RCL.INSTALL.EXTERNAL.html >> INSTALL
|
||||
links -dump ${RECOLLDOC}/RCL.INSTALL.BUILDING.html >> INSTALL
|
||||
links -dump ${RECOLLDOC}/RCL.INSTALL.CONFIG.html >> INSTALL
|
||||
|
||||
$VCCMD commit -m "release $version" README INSTALL
|
||||
|
||||
# Clean up this dir and copy the dist-specific files
|
||||
make distclean
|
||||
yes | clean.O
|
||||
rm -f lib/*.dep
|
||||
# Possibly clean up the cmake stuff
|
||||
(cd kde/kioslave/kio_recoll/ || exit 1
|
||||
rm -rf CMakeCache.txt CMakeFiles/ CMakeTmp/ CPack* CTestTestfile.cmake cmake_* *automoc* lib builddir)
|
||||
|
||||
$TAR chfX - excludefile . | (cd $topdir;$TAR xf -)
|
||||
if test $snap = "yes" ; then
|
||||
echo $version > $topdir/VERSION
|
||||
fi
|
||||
|
||||
# Can't now put ./Makefile in excludefile, gets ignored everywhere. So delete
|
||||
# the top Makefile here (its' output by configure on the target system):
|
||||
rm -f $topdir/Makefile
|
||||
|
||||
out=$releasename.tar.gz
|
||||
(cd $targetdir ; \
|
||||
$TAR chf - $releasename | \
|
||||
gzip > $out)
|
||||
echo "$targetdir/$out created"
|
||||
|
||||
# Check manifest against current reference
|
||||
export LANG=C
|
||||
tar tzf $targetdir/$out | sort | cut -d / -f 2- | \
|
||||
diff mk/manifest.txt - || fatal "Please fix file list mk/manifest.txt"
|
||||
|
||||
# We tag .. as there is the 'packaging/' directory in there
|
||||
[ $dotag = "yes" ] && tagtop $TAG
|
||||
@ -1,98 +0,0 @@
|
||||
#!/bin/sh
|
||||
#set -x
|
||||
# A shell-script to make a recoll static binary distribution:
|
||||
|
||||
fatal()
|
||||
{
|
||||
echo $*;exit 1
|
||||
}
|
||||
|
||||
TAR=tar
|
||||
|
||||
targetdir=${targetdir-/tmp}
|
||||
|
||||
if test ! -d qtgui;then
|
||||
echo "Should be executed in the master recoll directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
version=`cat VERSION`
|
||||
sys=`uname -s`
|
||||
sysrel=`uname -r`
|
||||
|
||||
qtguiassign=`egrep '^QTGUI=' recollinstall`
|
||||
stripassign=`egrep '^STRIP=' recollinstall`
|
||||
test ! -z "$qtguiassign" || fatal "Can't find qt version"
|
||||
test ! -z "$stripassign" || fatal "Can't find strip string"
|
||||
eval $qtguiassign
|
||||
eval $stripassign
|
||||
echo "QTGUI: " $QTGUI "STRIP: " $STRIP
|
||||
|
||||
topdirsimple=recoll-${version}-${sys}-${sysrel}
|
||||
topdir=$targetdir/$topdirsimple
|
||||
|
||||
tarfile=$targetdir/recoll-${version}-${sys}-${sysrel}.tgz
|
||||
|
||||
if test ! -d $topdir ; then
|
||||
mkdir $topdir || exit 1
|
||||
else
|
||||
echo "Removing everything under $topdir Ok ? (y/n)"
|
||||
read rep
|
||||
if test $rep = 'y';then
|
||||
rm -rf $topdir/*
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -f index/recollindex ${QTGUI}/recoll
|
||||
|
||||
make static || exit 1
|
||||
|
||||
${STRIP} index/recollindex ${QTGUI}/recoll
|
||||
|
||||
files="
|
||||
COPYING
|
||||
INSTALL
|
||||
Makefile
|
||||
README
|
||||
VERSION
|
||||
desktop
|
||||
desktop/recoll-searchgui.desktop
|
||||
desktop/recoll.png
|
||||
doc/man
|
||||
doc/user
|
||||
filters
|
||||
index/rclmon.sh
|
||||
index/recollindex
|
||||
qtgui/i18n/*.qm
|
||||
qtgui/images
|
||||
qtgui/mtpics/*.png
|
||||
qtgui/recoll
|
||||
recollinstall
|
||||
sampleconf
|
||||
"
|
||||
|
||||
$TAR chf - $files | (cd $topdir; $TAR xf -)
|
||||
|
||||
# Remove any install dependancy
|
||||
chmod +w $topdir/Makefile || exit 1
|
||||
sed -e '/^install:/c\
|
||||
install: ' < $topdir/Makefile > $topdir/toto && \
|
||||
mv $topdir/toto $topdir/Makefile
|
||||
|
||||
# Clean up .svn directories from target. This would be easier with a
|
||||
# --exclude tar option, but we want this to work with non-gnu tars
|
||||
cd $topdir || exit 1
|
||||
svndirs=`find . -name .svn -print`
|
||||
echo "In: `pwd`. Removing $svndirs ok ?"
|
||||
read rep
|
||||
test "$rep" = 'y' -o "$rep" = 'Y' && rm -rf $svndirs
|
||||
|
||||
cd $targetdir
|
||||
|
||||
(cd $targetdir ; \
|
||||
$TAR chf - $topdirsimple | \
|
||||
gzip > $tarfile)
|
||||
|
||||
echo $tarfile created
|
||||
@ -1,166 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Install recoll files.
|
||||
|
||||
fatal()
|
||||
{
|
||||
echo $*
|
||||
exit 1
|
||||
}
|
||||
usage()
|
||||
{
|
||||
fatal 'Usage: recollinstall [<prefixdir>], ie: recollinstall /usr/local'
|
||||
}
|
||||
|
||||
if test $# -eq 0 ; then
|
||||
PREFIX=@prefix@
|
||||
elif test $# -eq 1 ; then
|
||||
PREFIX=$1
|
||||
else
|
||||
usage
|
||||
fi
|
||||
QTGUI=@QTGUI@
|
||||
# The .qm files are in qtgui/i18n even if qt4 is used
|
||||
I18N=qtgui/i18n
|
||||
|
||||
RCLLIBVERSION=@RCLLIBVERSION@
|
||||
|
||||
test -n "$bindir" || bindir=${PREFIX}/bin
|
||||
test -n "$libdir" || libdir=${PREFIX}/lib
|
||||
test -n "$datadir" || datadir=${PREFIX}/share
|
||||
if test -z "$mandir" ; then
|
||||
if test -d ${PREFIX}/man ; then
|
||||
mandir=${PREFIX}/man
|
||||
else
|
||||
mandir=${datadir}/man
|
||||
fi
|
||||
fi
|
||||
|
||||
REALPREFIX=$PREFIX
|
||||
ROOTFORPYTHON=""
|
||||
if test -n "$DESTDIR" ; then
|
||||
PREFIX=$DESTDIR/$PREFIX
|
||||
bindir=$DESTDIR/$bindir
|
||||
libdir=$DESTDIR/$libdir
|
||||
datadir=$DESTDIR/$datadir
|
||||
mandir=$DESTDIR/$mandir
|
||||
ROOTFORPYTHON="--root=${DESTDIR}"
|
||||
fi
|
||||
if test -f /etc/debian_version ; then
|
||||
OPTSFORPYTHON=--install-layout=deb
|
||||
fi
|
||||
|
||||
echo "Installing to $PREFIX"
|
||||
|
||||
# Note: solaris 'install' does not understand -v
|
||||
INSTALL=${INSTALL:="install -c"}
|
||||
STRIP=${STRIP:=strip}
|
||||
|
||||
sys=`uname`
|
||||
@NOQTMAKE@if test "$sys" = Darwin ; then
|
||||
@NOQTMAKE@ RECOLLPROG=${QTGUI}/recoll.app/Contents/MacOS/recoll
|
||||
@NOQTMAKE@else
|
||||
@NOQTMAKE@ RECOLLPROG=${QTGUI}/recoll
|
||||
@NOQTMAKE@fi
|
||||
|
||||
TESTPROG=index/recollindex
|
||||
test -x $TESTPROG || fatal "$TESTPROG does not exist." \
|
||||
" You need to build first (type 'make')."
|
||||
|
||||
for d in \
|
||||
${bindir} \
|
||||
${libdir} \
|
||||
${libdir}/recoll \
|
||||
${mandir}/man1 \
|
||||
${mandir}/man5 \
|
||||
${datadir}/icons \
|
||||
${datadir}/recoll/doc \
|
||||
${datadir}/recoll/examples \
|
||||
${datadir}/recoll/filters \
|
||||
${datadir}/recoll/images \
|
||||
${datadir}/recoll/translations \
|
||||
${datadir}/icons/hicolor/48x48/apps \
|
||||
${datadir}/pixmaps
|
||||
do
|
||||
test -d $d || mkdir -p $d || exit 1
|
||||
done
|
||||
|
||||
@NOQTMAKE@test -d ${datadir}/applications \
|
||||
@NOQTMAKE@ || mkdir -p ${datadir}/applications || exit 1
|
||||
@NOQTMAKE@test -d ${datadir}/appdata \
|
||||
@NOQTMAKE@ || mkdir -p ${datadir}/appdata || exit 1
|
||||
|
||||
# Use the xdg utilies to install the desktop file and icon? Couldn't find
|
||||
# out how to get this to work sanely. So keep the old way
|
||||
#PATH=$PATH:desktop/xdg-utils-1.0.1/scripts
|
||||
#export PATH
|
||||
#xdg-desktop-menu install desktop/recoll-searchgui.desktop
|
||||
#xdg-icon-resource install --size 48 desktop/recoll.png
|
||||
@NOQTMAKE@${INSTALL} -m 0444 desktop/recoll.appdata.xml ${datadir}/appdata
|
||||
@NOQTMAKE@${INSTALL} -m 0444 desktop/recoll-searchgui.desktop ${datadir}/applications
|
||||
@NOQTMAKE@${INSTALL} -m 0444 desktop/recoll.png ${datadir}/icons/hicolor/48x48/apps
|
||||
@NOQTMAKE@${INSTALL} -m 0444 desktop/recoll.png ${datadir}/pixmaps/
|
||||
|
||||
if test -f doc/user/usermanual.html ; then
|
||||
${INSTALL} -m 0444 doc/user/usermanual.html doc/user/docbook-xsl.css \
|
||||
${datadir}/recoll/doc
|
||||
else
|
||||
echo "User manual not found -> not installed"
|
||||
fi
|
||||
|
||||
@NOQTMAKE@${INSTALL} -m 0444 doc/man/recoll.1 ${mandir}/man1/
|
||||
# Install the recollq man page in all cases, it's useful for recoll -t
|
||||
${INSTALL} -m 0444 doc/man/recollq.1 ${mandir}/man1/
|
||||
${INSTALL} -m 0444 doc/man/recollindex.1 ${mandir}/man1/
|
||||
${INSTALL} -m 0444 doc/man/recoll.conf.5 ${mandir}/man5/
|
||||
|
||||
@NOQTMAKE@${INSTALL} -m 0755 ${RECOLLPROG} ${bindir} || exit 1
|
||||
@NOQTMAKE@${STRIP} ${bindir}/recoll
|
||||
@NOCMDLINE@${INSTALL} -m 0755 query/recollq ${bindir} || exit 1
|
||||
@NOCMDLINE@${STRIP} ${bindir}/recollq
|
||||
${INSTALL} -m 0755 index/recollindex ${bindir} || exit 1
|
||||
${STRIP} ${bindir}/recollindex
|
||||
|
||||
@NODYNLIB@${INSTALL} -m 0644 lib/librecoll.so.${RCLLIBVERSION} \
|
||||
@NODYNLIB@ ${libdir}/recoll/ || exit 1
|
||||
|
||||
${INSTALL} -m 0755 filters/rcl* ${datadir}/recoll/filters/ || exit 1
|
||||
${INSTALL} -m 0555 filters/ppt-dump.py ${datadir}/recoll/filters/ || exit 1
|
||||
${INSTALL} -m 0555 filters/xls-dump.py ${datadir}/recoll/filters/ || exit 1
|
||||
${INSTALL} -m 0555 filters/xlsxmltocsv.py ${datadir}/recoll/filters/ || exit 1
|
||||
|
||||
${INSTALL} -m 0444 filters/msodump.zip ${datadir}/recoll/filters/ || exit 1
|
||||
for f in rclexecm.py rcllatinstops.zip;do
|
||||
chmod 644 ${datadir}/recoll/filters/$f
|
||||
done
|
||||
|
||||
${INSTALL} -m 0755 desktop/xdg-utils-1.0.1/scripts/xdg-open \
|
||||
${datadir}/recoll/filters/ || exit 1
|
||||
${INSTALL} -m 0755 desktop/hotrecoll.py \
|
||||
${datadir}/recoll/filters/ || exit 1
|
||||
${INSTALL} -m 0644 python/recoll/recoll/rclconfig.py \
|
||||
${datadir}/recoll/filters/ || exit 1
|
||||
|
||||
${INSTALL} -m 0444 \
|
||||
desktop/recollindex.desktop \
|
||||
sampleconf/fragbuts.xml \
|
||||
sampleconf/mimeconf \
|
||||
sampleconf/mimeview \
|
||||
sampleconf/recoll.conf \
|
||||
sampleconf/mimemap \
|
||||
sampleconf/fields \
|
||||
sampleconf/recoll.qss \
|
||||
${datadir}/recoll/examples/ || exit 1
|
||||
${INSTALL} -m 0755 index/rclmon.sh ${datadir}/recoll/examples/ || exit 1
|
||||
|
||||
|
||||
${INSTALL} -m 0444 qtgui/mtpics/*.png ${datadir}/recoll/images || exit 1
|
||||
|
||||
${INSTALL} -m 0444 ${I18N}/recoll*.qm ${datadir}/recoll/translations || exit 1
|
||||
# Install the simplified chinese file as just chinese until I can understand
|
||||
# if it's possible to have both. zh_CN doesn't seem to work
|
||||
${INSTALL} -m 0444 ${I18N}/recoll_zh_CN.qm \
|
||||
${datadir}/recoll/translations/recoll_zh.qm || exit 1
|
||||
|
||||
|
||||
@NOPYTHON@(cd python/recoll;python setup.py install \
|
||||
@NOPYTHON@ --prefix=${REALPREFIX} ${ROOTFORPYTHON} ${OPTSFORPYTHON})
|
||||
Loading…
x
Reference in New Issue
Block a user