Skip to content
Snippets Groups Projects
Commit 6b4f8c5f authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci
Browse files

build-wget: Improved some messages and comments

parent d869a84c
Branches
Tags
No related merge requests found
......@@ -24,12 +24,12 @@ PREFIX="$(dirname $0)"
# Get the configuration
if ! source "${PREFIX}/buildpackage.conf" 2> /dev/null; then
echo "error: failed to load buildpackage.conf"
printf "ERROR (1): Failed to load buildpackage.conf.\n"
exit 1
fi
# Customizable variables, please refer to
# buildpackage.conf to change these values
# Customizable variables. Please refer to buildpackage.conf to change these
# values
: ${GITBASEDIR:="../"}
: ${GITUSER:="git"}
: ${GITSERVER:="git.c3sl.ufpr.br"}
......@@ -38,34 +38,32 @@ fi
: ${AGENTPACKAGEDIR:="SEED2-run"}
printf "====================\n"
printf "$0 v0.1\n"
printf "\n"
printf "====================\n$0 v0.1\n\n"
printf "**** Make sure that you are connected to the internet!!!\n"
printf "====================\n"
printf "\n"
printf "====================\n\n"
# Remove old builds
rm -Rf wget-*
# Download the latest wget package
wget http://gnu.c3sl.ufpr.br/ftp/wget/wget-latest.tar.gz -O wget.tar.gz || \
(printf "Error downloading the latest wget version... ABORTING!\n" && exit 1)
(printf "ERROR (2): Failed to download the latest wget version. %b" \
"Aborting...\n" && exit 2)
# Unpack
tar xvvf wget.tar.gz &> /dev/null || \
(printf "Error unpacking wget... ABORTING!\n" && exit 1)
(printf "ERROR (3): Failed to unpack wget. Aborting...\n" && exit 3)
# Configure and compile
cd wget-*
./configure --without-ssl --disable-opie --disable-digest --disable-ntlm \
--disable-debug --disable-nls --disable-largefile \
--disable-ipv6 --disable-rpath --disable-iri || \
(printf "Error configuring wget... ABORTING!\n" && exit 1)
(printf "ERROR (4): Failed to configure wget. Aborting...\n" && exit 4)
make LDFLAGS=-static ||
(printf "Error compiling wget... ABORTING!\n" && exit 1)
(printf "ERROR (5): Failed to compile wget. Aborting...\n" && exit 5)
cd - &> /dev/null
printf "All done.\n"
printf "\nAll done.\n\n"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment