summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2006-01-23 21:35:41 +0000
committerMark Wielaard <mark@klomp.org>2006-01-23 21:35:41 +0000
commitef603bd3c1cdf9eb189c6243ec12e94a58c499c3 (patch)
treeb5a626ed03e8ad8a9c42fe7b842bb04d7e012828 /examples
parent82c97f2fbc99dea9a1f59e9ce5772ca0a9a86087 (diff)
downloadclasspath-ef603bd3c1cdf9eb189c6243ec12e94a58c499c3.tar.gz
* examples/Makefile.am (EXAMPLE_ZIP): Group cd and commands.
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 6cf7ad22b..bf427ee41 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -95,10 +95,10 @@ $(EXAMPLE_ZIP): $(EXAMPLE_JAVA_FILES)
mkdir -p classes/gnu/classpath/examples/icons
cp $(EXAMPLE_ICONS) classes/gnu/classpath/examples/icons
$(JCOMPILER) -d classes $(EXAMPLE_JAVA_FILES)
- cd classes
- if test "$(ZIP)" != ""; then $(ZIP) -r ../$(EXAMPLE_ZIP) .; fi
- if test "$(FASTJAR)" != ""; then $(FASTJAR) cf ../$(EXAMPLE_ZIP) .; fi
- cd ..
+ (cd classes; \
+ if test "$(ZIP)" != ""; then $(ZIP) -r ../$(EXAMPLE_ZIP) .; fi; \
+ if test "$(FASTJAR)" != ""; then $(FASTJAR) cf ../$(EXAMPLE_ZIP) .; fi; \
+ cd ..)
rm -rf classes
# Zip file be gone! (and make sure the classes are gone too)