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.105 opt/clojure/flokjure
flok-0.0.103 opt/clojure/flokjure
flok-0.0.102 opt/clojure/flokjure
flok-0.0.101 opt/clojure/flokjure
flok-0.0.100 opt/clojure/flokjure
flok-0.0.99 opt/clojure/flokjure
flok-0.0.98 opt/clojure/flokjure
flok-0.0.97 opt/clojure/flokjure
flok-0.0.96 opt/clojure/flokjure
flok-0.0.95 opt/clojure/flokjure
flok-0.0.94 opt/clojure/flokjure
flok-0.0.93 opt/clojure/flokjure
flok-0.0.92 opt/clojure/flokjure
flok-0.0.91 opt/clojure/flokjure
flok-0.0.90 opt/clojure/flokjure
flok-0.0.89 opt/clojure/flokjure
flok-0.0.88 opt/clojure/flokjure
flok-0.0.87 opt/clojure/flokjure
flok-0.0.86 opt/clojure/flokjure
flok-0.0.85 opt/clojure/flokjure