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

le-proinfodata-installer/le-proinfodata-deb.sh: Update script


Update script to work in the new repositories scheme.

Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
parent 0cd81b65
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,7 @@
# USA.
PREFIX="$(dirname $(readlink -f $0))"
LEPIDURL="http://git.c3sl.ufpr.br/pub/scm/le/le-proinfodata.git"
LEPIDDIR="${PREFIX}/le-proinfodata"
LEPIDDIR="${PREFIX}/../le-proinfodata"
LEPIDDEST="${PREFIX}/pacote/etc/le-proinfodata-installer"
# Check if the le-proinfodata debian package already exists
......@@ -33,24 +32,9 @@ if test -f "${LEPIDDEST}/"le-proinfodata_*.deb; then
exit 0
fi
# Check if the le-proinfodata repository directory already exists, cloning it
# otherwise
if ! test -d "${LEPIDDIR}"; then
if ! git clone "${LEPIDURL}" "${LEPIDDIR}"; then
printf "ERROR (1): problems while executing git clone(1).\n"
exit 1
fi
fi
# Change to le-proinfodata directory
cd "${LEPIDDIR}"
# Ensure the le-proinfodata repository is updated
if ! git pull; then
printf "ERROR (2): problems while executing git pull(1).\n"
exit 2
fi
# Generate the debian package
if ! ./gerar.sh; then
printf "ERROR (3): problems while generating le-proinfodata deb.\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment