Source

syntactic / bin / convert.sh

Full commit
Tim Vernum 94a86f9 




Tim Vernum 987fb91 
Tim Vernum 62d4624 




Tim Vernum 987fb91 
Tim Vernum 94a86f9 
Tim Vernum 62d4624 


Tim Vernum 94a86f9 

Tim Vernum 62d4624 






Tim Vernum 94a86f9 
#!/bin/bash

cd $(dirname $0)
cd ..

CP="parser/output/ant/classes/parser:convert/output/ant/classes/main"
for JAR in lib/core/*.jar
do
    CP="${CP}:${JAR}"
done

MAIN="org.adjective.syntactic.convert.j8to7.Main"

OUTPUT="output/convert"
mkdir -p ${OUTPUT}

for FILE in "$@"
do
    java -cp "${CP}" "${MAIN}" --source "${FILE}" --output "${OUTPUT}"
    if [ -f ${FILE} ]
    then
        show "${OUTPUT}/$( basename ${FILE} )"
    else
        show ${OUTPUT}
    fi
done