Final Slackbuild cleanups, ant slackpkg target added.

This commit is contained in:
sponge
2009-02-02 01:22:31 +00:00
parent f70be29651
commit b6b1491368
10 changed files with 88 additions and 29 deletions

View File

@@ -7,7 +7,7 @@ INST_DIR=directory
echo
for i in *.config ; {
if [ -f $INST_DIR/$i ] ; then
echo "Please check $i, as there is a new version."
echo "Please check ${INST_DIR}${i}, as there is a new version."
cp $i $INST_DIR/$i.new
else
cp $i $INST_DIR/$i
@@ -15,6 +15,36 @@ for i in *.config ; {
}
)
( cd $INST_DIR
if [ -f blocklist.txt ] ; then
echo "Please check ${INST_DIR}blocklist.txt, as there is a new version."
else
mv blocklist.txt.new blocklist.txt
fi
)
( cd $INST_DIR/eepsite
if [ -f jetty.xml ] ; then
rm jetty.xml.new
else
mv jetty.xml.new jetty.xml
fi
)
( cd $INST_DIR/eepsite/docroot
if [ -f index.html ] ; then
rm index.html.new
else
mv index.html.new index.html
fi
if [ -f favicon.ico ] ; then
rm favicon.ico.new
else
mv favicon.ico.new favicon.ico
fi
)
echo
echo "FINISHING I2P INSTALLATION. PLEASE WAIT."
@@ -23,8 +53,6 @@ sh postinstall.sh || (
echo "ERROR: failed execution of postinstall.sh. Please"
echo "cd into i2p installation directory and run "
echo "postinstall.sh manually with ./postinstall.sh"
echo "It is also reccomended to set router.blocklist.enable=true "
echo "in the router.config file."
exit 1
)