Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fffcb78

Browse files
use jar(1) instead of zip(1) to create the jar file
1 parent 81e3174 commit fffcb78

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

‎Makefile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classes = $(sources:src/%.java=%.class)
1818
all: $(firstword $(classes))
1919

2020
clean:
21-
rm -rf META-INF com
21+
rm -rf com
2222

2323
distclean: clean
2424
rm -rf lib
@@ -39,19 +39,14 @@ $(library):
3939
mkdir -p lib
4040
curl -o $@ http://www.topcoder.com/contest/classes/ContestApplet.jar
4141

42-
$(jarfile): $(classes) $(resources) META-INF/MANIFEST.MF
42+
$(jarfile): $(classes) $(resources)
4343
@echo "Packaging jar file..."
4444
mkdir -p com/dogcows/resources
4545
cp src/com/dogcows/resources/* com/dogcows/resources
4646
rm -f $@
47-
zip $@ META-INF/MANIFEST.MF COPYING README$$(find com -type f | sort)
47+
jar cvf $@ COPYING README.md com
4848
@echo "Done."
4949

50-
META-INF/MANIFEST.MF:
51-
@echo "Generating MANIFEST.MF..."
52-
mkdir -p META-INF
53-
printf "Manifest-Version: 1.0\n\n" >$@
54-
5550

5651
.PHONY: all clean distclean dist fetch jar
5752

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /