From a728d5569e68ad32e3161d23ca8e43864a524afd Mon Sep 17 00:00:00 2001
From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br>
Date: Fri, 21 Sep 2012 09:02:18 -0300
Subject: [PATCH] le-proinfodata-installer/le-proinfodata-deb.sh: Update script

Update script to work in the new repositories scheme.

Signed-off-by: Erik Alexandre Pucci <eap08@c3sl.ufpr.br>
---
 le-proinfodata-installer/le-proinfodata-deb.sh | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/le-proinfodata-installer/le-proinfodata-deb.sh b/le-proinfodata-installer/le-proinfodata-deb.sh
index 26e7f1c3e..d97f36004 100755
--- a/le-proinfodata-installer/le-proinfodata-deb.sh
+++ b/le-proinfodata-installer/le-proinfodata-deb.sh
@@ -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"
-- 
GitLab