diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2007-03-06 03:39:52 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2007-03-06 03:39:52 +0000 |
commit | b5e4fe7bf1da6ca43a016d8925a23d9b961f216d (patch) | |
tree | acb56f16ed85116a16d4a1a3019a52a3235e2da2 /portuguese/irpf-pt_BR | |
parent | New port irpf version 2007.1.0: Programa do Imposto de Renda Pessoa (diff) |
o Improve wrapper.sh script: remove jars after we have used them
o Bump PORTREVISION
Diffstat (limited to 'portuguese/irpf-pt_BR')
-rw-r--r-- | portuguese/irpf-pt_BR/Makefile | 1 | ||||
-rw-r--r-- | portuguese/irpf-pt_BR/files/wrapper.sh | 17 |
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 |