Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 37 lines (33 sloc) 1.329 kb
b831cbd @manopapad Set compilation flags automatically according to OTP version
authored
1 #!/bin/sh
2
3 # Copyright 2010-2011 Manolis Papadakis <manopapad@gmail.com>,
4 # Eirini Arvaniti <eirinibob@gmail.com>
5 # and Kostis Sagonas <kostis@cs.ntua.gr>
6 #
7 # This file is part of PropEr.
8 #
9 # PropEr is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
13 #
14 # PropEr is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with PropEr. If not, see <http://www.gnu.org/licenses/>.
21
22 # Author: Manolis Papadakis
23 # Description: Script for testing the validity of escript files
24
25 for ESCRIPT_NAME in "$@"; do
26 SRC_FILE="$ESCRIPT_NAME".erl
27 BIN_FILE="$ESCRIPT_NAME".beam
28 > $SRC_FILE
29 echo "-module($ESCRIPT_NAME)." >> $SRC_FILE
30 echo "-export([main/1])." >> $SRC_FILE
31 echo -n "%" >> $SRC_FILE
32 cat $ESCRIPT_NAME >> $SRC_FILE
33 erlc +debug_info $SRC_FILE; true
34 dialyzer -Wunmatched_returns $BIN_FILE; true
35 rm -f $SRC_FILE $BIN_FILE
36 done
Something went wrong with that request. Please try again.