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