From b080d798f9b519d8b82565217ccb266bcf09054c Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 19 May 2007 00:14:38 +0000 Subject: Some cleanup left to do --- recoll/build/recoll.SlackBuild | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/recoll/build/recoll.SlackBuild b/recoll/build/recoll.SlackBuild index 03906247..5820df17 100755 --- a/recoll/build/recoll.SlackBuild +++ b/recoll/build/recoll.SlackBuild @@ -155,9 +155,6 @@ echo "++" cd $TMP/tmp-$PRGNAM - -# --- TARBALL EXTRACTION,PATCH,MODIFY --- - echo "Extracting the source archive(s) for $PRGNAM..." if `file ${SOURCE} | grep -q ": bzip2"`; then tar -xjvf ${SOURCE} @@ -200,30 +197,6 @@ cp $PKG/usr/share/icons/hicolor/48x48/apps/recoll-searchgui.png \ $PKG/usr/share/pixmaps/ sed -i -e "s#^Icon=recoll-searchgui#Icon=/usr/share/pixmaps/recoll-searchgui.png#" $PKG/usr/share/applications/recoll-searchgui.desktop -# Add this to the doinst.sh -! [ -d $PKG/install ] && mkdir -p $PKG/install -cat <> $PKG/install/doinst.sh -# Handle the incoming configuration files: -config() { - for infile in \$1; do - NEW="\$infile" - OLD="\`dirname \$NEW\`/\`basename \$NEW .new\`" - # If there's no config file by that name, mv it over: - if [ ! -r \$OLD ]; then - mv \$NEW \$OLD - elif [ "\`cat \$OLD | md5sum\`" = "\`cat \$NEW | md5sum\`" ]; then - # toss the redundant copy - rm \$NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... - done -} - -# An example of how you handle your '.new' config files: -#config etc/recoll.conf.new - -EOINS - # Add documentation: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -- cgit v1.2.3-65-gdbad