Commit fc30d82d authored by Joost van Baal-Ilić's avatar Joost van Baal-Ilić

*-publicfile*: update copyright, s/aangifte-ib/publicfile/

parent 297a75e5
#!/bin/sh -e
# this file maintained using GNU Arch at
# http://mdcc.cx/arch/{archives}/2006-aangifte-ib
# this file maintained using git at
# FIXME
#
# Copyright (C) 2006, 2007 Joost van Baal
# Copyright (C) 2015 Joost van Baal-Ilić
#
# This file is free software; you can redistribute it and/or modify it under
# the terms of the GNU GPL as published by the FSF; version 3 of the License,
......@@ -13,12 +14,12 @@
# http://www.gnu.org/copyleft/gpl.html.
#
for f in /etc/aangifte-ib-installer.conf /usr/local/etc/aangifte-ib-installer.conf $HOME/.aangifte-ib-installer.conf
for f in /etc/publicfile-installer.conf /usr/local/etc/publicfile-installer.conf $HOME/.publicfile-installer.conf
do
test -f $f && . $f
done
# check wether sources are present; if not, call get-aangifte-ib
# check wether sources are present; if not, call get-publicfile
check_sources
if test -z "$DIFFDIR"
......@@ -35,13 +36,13 @@ if test -z "$TARDIR" -o -z "$DIFFDIR"
then
if test "$1" = "go"
then
echo "Please run get-aangifte-ib to fetch sources."
echo "Please run get-publicfile to fetch sources."
exit 1
elif ask_user "Do you want to fetch sources now? [Yn] " 0
then
exec get-aangifte-ib
exec get-publicfile
else
echo "OK, you can run get-aangifte-ib later."
echo "OK, you can run get-publicfile later."
fi
fi
......@@ -87,18 +88,16 @@ else
fi
fi
test -d /tmp/aangifte-ib-installer/ || mkdir /tmp/aangifte-ib-installer/
cp $DIFFDIR/$DEBFILE /tmp/aangifte-ib-installer/
test -d /tmp/publicfile-installer/ || mkdir /tmp/publicfile-installer/
cp $DIFFDIR/$DEBFILE /tmp/publicfile-installer/
if test "$1" = "go"
then
# non-interactive mode, called from within dpkg
echo "Remember to run install-aangifte-ib later."
elif ask_user "Do you want to install the aangifte-ib package now? [Yn] " 0
echo "Remember to run install-publicfile later."
elif ask_user "Do you want to install the publicfile package now? [Yn] " 0
then
exec install-aangifte-ib
exec install-publicfile
else
echo "OK, you can run install-aangifte-ib later."
echo "OK, you can run install-publicfile later."
fi
.so man1/aangifte-ib-installer.1
.so man1/publicfile-installer.1
#!/bin/sh
# this file maintained using GNU Arch at
# http://mdcc.cx/arch/{archives}/2006-aangifte-ib
# this file maintained using git at
# FIXME
#
# Copyright (C) 2006, 2007 Joost van Baal
# Copyright (C) 2015 Joost van Baal-Ilić
#
# This file is free software; you can redistribute it and/or modify it under
# the terms of the GNU GPL as published by the FSF; version 3 of the License,
......@@ -13,18 +14,18 @@
# http://www.gnu.org/copyleft/gpl.html.
#
for f in /etc/aangifte-ib-installer.conf /usr/local/etc/aangifte-ib-installer.conf $HOME/.aangifte-ib-installer.conf
for f in /etc/publicfile-installer.conf /usr/local/etc/publicfile-installer.conf $HOME/.publicfile-installer.conf
do
test -f $f && . $f
done
if test 0 = `id -u`
then
test -d /usr/src/aangifte-ib-installer || mkdir -p /usr/src/aangifte-ib-installer
cd /usr/src/aangifte-ib-installer
test -d /usr/src/publicfile-installer || mkdir -p /usr/src/publicfile-installer
cd /usr/src/publicfile-installer
else
test -d $HOME/.aangifte-ib-installer || mkdir -p $HOME/.aangifte-ib-installer
cd $HOME/.aangifte-ib-installer
test -d $HOME/.publicfile-installer || mkdir -p $HOME/.publicfile-installer
cd $HOME/.publicfile-installer
fi
# set TARDIR/DIFFDIR
......@@ -50,9 +51,9 @@ then
echo "Found valid .diff.gz in $DIFFDIR, no need to download"
else
# wget --recursive --accept diff.gz --level=1 --no-directories --no-parent \
# http://mdcc.cx/pub/aangifte-ib/
echo "Downloading http://mdcc.cx/pub/aangifte-ib/$DIFFFILE..."
wget --output-document=$DIFFFILE --quiet http://mdcc.cx/pub/aangifte-ib/$DIFFFILE
# http://mdcc.cx/pub/publicfile/
echo "Downloading http://mdcc.cx/pub/publicfile/$DIFFFILE..."
wget --output-document=$DIFFFILE --quiet http://mdcc.cx/pub/publicfile/$DIFFFILE
if echo "$MD5SUM_DIFF" | md5sum -c --status
then
DIFFDIR=`pwd`
......@@ -62,18 +63,17 @@ else
fi
fi
echo " ----------------------------"
echo ",---------------------------- - - - -"
echo "| $TARFILE verified and installed in $TARDIR."
echo "| $DIFFFILE verified and installed in $DIFFDIR."
echo " ----------------------------"
echo "`---------------------------- - - - -"
if test "$1" = "go"
then
exec build-aangifte-ib go
elif ask_user "Do you want to build the aangifte-ib package now? [Yn] " 0
exec build-publicfile go
elif ask_user "Do you want to build the publicfile package now? [Yn] " 0
then
exec build-aangifte-ib
exec build-publicfile
else
echo "OK, you can run build-aangifte-ib later."
echo "OK, you can run build-publicfile later."
fi
.so man1/aangifte-ib-installer.1
.so man1/publicfile-installer.1
#!/bin/sh -e
# this file maintained using GNU Arch at
# http://mdcc.cx/arch/{archives}/2006-aangifte-ib
# this file maintained using git at
# FIXME
#
# Copyright (C) 2006 Joost van Baal
# Copyright (C) 2015 Joost van Baal-Ilić
#
# This file is free software; you can redistribute it and/or modify it under
# the terms of the GNU GPL as published by the FSF; version 3 of the License,
......@@ -13,14 +14,12 @@
# http://www.gnu.org/copyleft/gpl.html.
#
if [ 0 = `id -u` ]
then
dpkg -i /tmp/aangifte-ib-installer/aangifte-ib*_i386.deb
dpkg -i /tmp/publicfile-installer/publicfile*_*.deb
else
echo >&2 "This script needs to be run as root."
echo >&2 "Please try again, e.g. by calling this script as"
echo >&2 "'sudo install-aangifte-ib'."
echo >&2 "'sudo install-publicfile'."
exit 1
fi
.so man1/aangifte-ib-installer.1
.so man1/publicfile-installer.1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment