aboutsummaryrefslogtreecommitdiffstats
path: root/portuguese/irpf-pt_BR/files
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2007-03-06 11:39:52 +0800
committerlioux <lioux@FreeBSD.org>2007-03-06 11:39:52 +0800
commite574e6da0dc79e345118560ce1f54153cbd1b419 (patch)
tree73832f623d73ba270a924c4ecb7c7790f9022d74 /portuguese/irpf-pt_BR/files
parent26856a83fd140327940591735f0c706770ea8cde (diff)
downloadfreebsd-ports-graphics-e574e6da0dc79e345118560ce1f54153cbd1b419.tar.gz
freebsd-ports-graphics-e574e6da0dc79e345118560ce1f54153cbd1b419.tar.zst
freebsd-ports-graphics-e574e6da0dc79e345118560ce1f54153cbd1b419.zip
o Improve wrapper.sh script: remove jars after we have used them
o Bump PORTREVISION
Diffstat (limited to 'portuguese/irpf-pt_BR/files')
-rw-r--r--portuguese/irpf-pt_BR/files/wrapper.sh17
1 files changed, 14 insertions, 3 deletions
diff --git a/portuguese/irpf-pt_BR/files/wrapper.sh b/portuguese/irpf-pt_BR/files/wrapper.sh
index d21fbf2b46f..2e750bb550b 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