View Single Post
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#180
Originally Posted by santiago View Post
Thx for the answer, i mean this
kind of size i see..
Other thing.. can you add this to the phoneme for maemo? It creates a jad from a jar file

Code:
#!/bin/bash

FILE=$1
if [ ! -f "${FILE}" ]; then
  echo "Select an input file first!"
  exit 1
fi

JAD="${FILE%.*}.jad"
if [ -f "${JAD}" ]; then
  echo "${JAD} Already exists, overwrite the file? (y/N)"
  read tmpans
  answer=$(echo "$tmpans" | tr '[:upper:]' '[:lower:]')
  if [ "$answer" != "y" ] && [ "$answer" != "yes" ]; then
    echo "Not overwriting ${JAD} file!"
    exit 1
  else
    rm -f "${JAD}"
  fi
fi

unzip -aa -j -p ${FILE} "META-INF/MANIFEST.MF" | sed -e '/^[ \t]*$/d' > "${JAD}"

echo "MIDlet-Jar-URL: ${FILE}" >> "${JAD}"
echo "MIDlet-Info-URL: http://" >> "${JAD}"

FILESIZE=$(stat %s "${FILE}")
echo "MIDlet-Jar-Size: ${FILESIZE}" >> "${JAD}"

echo "${JAD} file Created!"
exit 0
i saved like jadmaker on /usr/bin/. to create a jad file starting from a jar, now i simple digit

jadmaker /path/jarfilename.jar

and it makes the jad file just becouse sometimes we need a jad file too..
Hehe, I actually already had a similar script like yours as well as
another one to create the shell script. I will put them both in my
next build.

I see what you mean with the font issue. I will check again if I did
not make any mistake with the font anchor points.

Davy
 

The Following 2 Users Say Thank You to DavyP For This Useful Post: