diff options
author | lioux <lioux@FreeBSD.org> | 2007-03-06 11:39:52 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2007-03-06 11:39:52 +0800 |
commit | e574e6da0dc79e345118560ce1f54153cbd1b419 (patch) | |
tree | 73832f623d73ba270a924c4ecb7c7790f9022d74 /portuguese | |
parent | 26856a83fd140327940591735f0c706770ea8cde (diff) | |
download | freebsd-ports-gnome-e574e6da0dc79e345118560ce1f54153cbd1b419.tar.gz freebsd-ports-gnome-e574e6da0dc79e345118560ce1f54153cbd1b419.tar.zst freebsd-ports-gnome-e574e6da0dc79e345118560ce1f54153cbd1b419.zip |
o Improve wrapper.sh script: remove jars after we have used them
o Bump PORTREVISION
Diffstat (limited to 'portuguese')
-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 |