aboutsummaryrefslogtreecommitdiff
path: root/portuguese/irpf-pt_BR
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2007-03-06 03:39:52 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2007-03-06 03:39:52 +0000
commitb5e4fe7bf1da6ca43a016d8925a23d9b961f216d (patch)
treeacb56f16ed85116a16d4a1a3019a52a3235e2da2 /portuguese/irpf-pt_BR
parent100b38fd173cce03e01f90e2113191cd2feebbc5 (diff)
downloadports-b5e4fe7bf1da6ca43a016d8925a23d9b961f216d.tar.gz
ports-b5e4fe7bf1da6ca43a016d8925a23d9b961f216d.zip
Notes
Diffstat (limited to 'portuguese/irpf-pt_BR')
-rw-r--r--portuguese/irpf-pt_BR/Makefile1
-rw-r--r--portuguese/irpf-pt_BR/files/wrapper.sh17
2 files changed, 15 insertions, 3 deletions
diff --git a/portuguese/irpf-pt_BR/Makefile b/portuguese/irpf-pt_BR/Makefile
index 1e1d3e09af26..34205bd68033 100644
--- a/portuguese/irpf-pt_BR/Makefile
+++ b/portuguese/irpf-pt_BR/Makefile
@@ -7,6 +7,7 @@
PORTNAME= irpf
PORTVERSION= 2007.1.0
+PORTREVISION= 1
CATEGORIES= portuguese finance java
MASTER_SITES= http://www.receita.fazenda.gov.br/publico/programas/irpf/2007/PGDIrpf2007/Java/ZIP/
PKGNAMEPREFIX?= pt_BR-
diff --git a/portuguese/irpf-pt_BR/files/wrapper.sh b/portuguese/irpf-pt_BR/files/wrapper.sh
index d21fbf2b46f6..2e750bb550b8 100644
--- a/portuguese/irpf-pt_BR/files/wrapper.sh
+++ b/portuguese/irpf-pt_BR/files/wrapper.sh
@@ -40,7 +40,18 @@ prepare_home_dir () {
start_irpf () {
cd ${HOME_DIR} &&
- exec ${JAVAVM} -jar ./${JAR_FILE} "${@}"
+ ${JAVAVM} -jar ./${JAR_FILE} "${@}"
+}
+
+clean_home_dir () {
+ # remove the jar files
+ for jar in ${JAR_FILES}
+ do
+ if [ -f ${HOME_DIR}/${jar} ]
+ then
+ rm -f ${HOME_DIR}/${jar} 2>/dev/null
+ fi
+ done
}
# always verify that home dir staging area is pristine
@@ -51,5 +62,5 @@ configure_java_classpath
start_irpf
-# we should never get this far
-exit 1
+# remove jars
+clean_home_dir