Hi Matthew,
here is a patch that works around the first part of the problem (blank
lines) and implements the "nice-to-have" part. This however is not yet
really satisfying as the resulting MANIFEST.MF will still not be to
spec. The non-main attributes will be ignored and the 72-bytes problem
is not solved (although gjc seems to handle this gracefully).
Regards,
Florian
Index: jaranalyzer-1.2/jh_manifest
===================================================================
--- jaranalyzer-1.2.orig/jh_manifest 2008-07-04 02:05:06.000000000 -0300
+++ jaranalyzer-1.2/jh_manifest 2008-07-04 02:07:26.000000000 -0300
@@ -49,6 +49,12 @@
( cd "$TEMPDIR" ; fastjar -x -f "$JAR" META-INF/MANIFEST.MF )
IFS='
'
+ # remove empty lines in manifest
+ sed -i "/^\r\?$/d" "$TEMPDIR/META-INF/MANIFEST.MF"
+
+ # remove CR in manifest to get consistent line endings
+ sed -i "s/\r$//" "$TEMPDIR/META-INF/MANIFEST.MF"
+
for i in `cat "$MANIFEST"`; do
KEY="`echo $i | sed 's/^ *\([^:]*\):.*$/\1/'`"
VALUE="`echo $i | cut -d: -f2`"
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]