Sha256: 8ea60d8ac93b2ddd3d9caecff22c06582cce8df9690a2237f35beb005053a81b

Contents?: true

Size: 970 Bytes

Versions: 85

Compression:

Stored size: 970 Bytes

Contents

#!/bin/sh
####################################################################
#Flok helper scripts for clojure compiler
####################################################################

COMPILER_JAR=`dirname pwd`

#Usage statement
function usage() {
  echo >&2 "Usage: flokjure [-o outfile] file"
  exit 1
}

#Process switches
while getopts o: arg
do
  case $arg in
  o)
    outfile=$OPTARG
    ;;
  [?])
    usage
    ;;
  esac
done

#If a file is not given, then output it to a temporary file and write to stdout
if [ -z "$outfile" ]
then
  outfile=/tmp/$RANDOM.flokjure
  stdout=true
fi

echo $stdout

touch $outfile
if [ $? -ne 0 ]; then
  echo >&2 "Couldn't write to output file $outfile"
  exit 1
fi

#After switches, get file
shift $(($OPTIND-1))

#Make sure we have a file
if [ -z "$@" ]; then usage; fi

#TARGET=$1
#shift

echo $0
COMPILER_JAR=compiler.jar
#java -jar $COMPILER_JAR --js $TARGET --js_output_file $TARGET.out --compilation_level ADVANCED $@

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
flok-0.0.84 opt/clojure/flokjure
flok-0.0.83 opt/clojure/flokjure
flok-0.0.82 opt/clojure/flokjure
flok-0.0.81 opt/clojure/flokjure
flok-0.0.80 opt/clojure/flokjure
flok-0.0.79 opt/clojure/flokjure
flok-0.0.78 opt/clojure/flokjure
flok-0.0.77 opt/clojure/flokjure
flok-0.0.76 opt/clojure/flokjure
flok-0.0.75 opt/clojure/flokjure
flok-0.0.74 opt/clojure/flokjure
flok-0.0.73 opt/clojure/flokjure
flok-0.0.72 opt/clojure/flokjure
flok-0.0.71 opt/clojure/flokjure
flok-0.0.70 opt/clojure/flokjure
flok-0.0.69 opt/clojure/flokjure
flok-0.0.68 opt/clojure/flokjure
flok-0.0.67 opt/clojure/flokjure
flok-0.0.66 opt/clojure/flokjure
flok-0.0.65 opt/clojure/flokjure