#!/bin/bash
CLAWS_CVS="claws-cvs"
cd sylpheedclaws
cvsok=$(cvs update)
cd ..
if [ !cvsok ]; then
echo -e "copying...\n"
cp -ru sylpheedclaws $CLAWS_CVS
if [ -f "$CLAWS_CVS/sylpheed-claws/Makefile" ]; then
echo -e "compiling $CLAWS_CVS..\n"
cd $CLAWS_CVS/sylpheed-claws
make && sudo make install
cd ..
echo -e $CLAWS_CVS" successful compiled\n"
else
echo -e "configure & compiling $CLAWS_CVS..\n"
cd $CLAWS_CVS/sylpheed-claws
./autogen.sh --prefix=/usr --disable-libetpan && make && sudo make install
cd ..
echo -e $CLAWS_CVS" successful configured & compiled\n"
fi
if [ -f "$CLAWS_CVS/plugins/ryssl/Makefile" ]; then
echo -e "compiling ryssl..\n"
cd $CLAWS_CVS/plugins/ryssl
make && sudo make install
cd ..
else
echo -e "configure & compiling ryssl..\n"
cd $CLAWS_CVS/plugins/ryssl
./autogen --prefix=/usr && make && sudo make install
cd ..
fi
if [ -f "$CLAWS_CVS/plugins/gtkhtml2_viewer/Makefile" ]; then
echo -e "compiling gtkhtml2_viewer\n"
cd $CLAWS_CVS/plugins/gtkhtml2_viewer
make && sudo make install
cd ..
else
echo -e "configure & compiling gtkhtml2_viewer\n"
cd $CLAWS_CVS/plugins/gtkhtml2_viewer
./autogen.sh --prefix=/usr && make && sudo make install
cd ..
fi
if [ -f "$CLAWS_CVS/plugins/pdf_viewer/Makefile" ]; then
echo -e "compiling pdf_viewer\n"
cd $CLAWS_CVS/plugins/pdf_viewer
make && sudo make install
cd ..
else
echo -e "configure & compiling pdf_viewer\n"
cd $CLAWS_CVS/plugins/pdf_viewer
./autogen.sh --prefix=/usr && make && sudo make install
cd ..
fi
else
echo -e "cleaning source tree...\n"
rm -r sylpheedclaws/plugins sylpheedclaws/sylpheed-claws
fi
echo "done."
exit 0
----------------------------------
configure & compiling pdf_viewer
./upclaws.sh: line 57: cd: claws-cvs/plugins/pdf_viewer: No such file or directory
./upclaws.sh: line 58: ./autogen.sh: No such file or directory