aboutsummaryrefslogtreecommitdiffstats
path: root/dist-tools/uploadfaq
blob: 7719ec985a69f2c43bc259cd5044e1f0572f1822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

echo >&2 "this script $0 is outdated. Abort."
exit 1

version=`sed -n '/VERSION *= *\(.*\)/s//\1/p' <Makefile`
echo "Uploading fetchmail version ${version} FAQ"

if [ $* ]
then
    ../upload $*
else
    lftp <<EOF
# First, copy to primary website
open ${WWWHOST}
cd ${WWWDIR}/fetchmail
put fetchmail-FAQ.html
close

# Next, upload to the ftp site
open locke.ccil.org
cd ~ftp/pub/esr/fetchmail
put FAQ
close
EOF
    echo "fetchmail FAQ uploaded"
fi
re, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. /var/log/fetchmail { weekly rotate 5 compress missingok notifempty create 640 fetchmail root sharedscripts postrotate if [ -f /var/run/fetchmail/fetchmail.pid ]; then \ if [ -x /usr/sbin/invoke-rc.d ]; then \ invoke-rc.d fetchmail restart > /dev/null; \ else \ /etc/init.d/fetchmail restart > /dev/null; \ fi; \ fi; endscript }