Skip to content

Commit

Permalink
Cleanup some shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kostis committed Apr 27, 2023
1 parent 49a640f commit ff3f1d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions example.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

EXAMPLES="11 21 12 22 11s 21s 12s 22s 11i 21i 12i 22i"

Expand All @@ -9,6 +9,6 @@ fi
for v in $EXAMPLES; do
echo "Running: $v"
gtime \
erl -noshell -pa $PWD/ebin -eval "cuter:run(example, foo$v, [[17]], 25)" \
-s init stop > LOG.$v
erl -noshell -pa "$PWD"/ebin -eval "cuter:run(example, foo$v, [[17]], 25)" \
-s init stop > LOG."$v"
done
8 changes: 4 additions & 4 deletions fetch_protoc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash

set -e

Expand All @@ -7,9 +7,9 @@ VER="3.20.2"
PROTOC_DIR="$DL/protoc-$VER"
rm -rf $PROTOC_DIR

ME=`basename "$0"`
ME=$(basename "$0")

SYSTEM_TYPE=`uname -s`
SYSTEM_TYPE=$(uname -s)
case ${SYSTEM_TYPE} in
'Darwin') OS=osx;;
'Linux') OS=linux;;
Expand All @@ -18,7 +18,7 @@ case ${SYSTEM_TYPE} in
;;
esac

MACHINE_TYPE=`uname -m`
MACHINE_TYPE=$(uname -m)
case ${MACHINE_TYPE} in
'i686') ARCH='x86_32';; # 32-bit
'x86_64') ARCH='x86_64';; # 64-bit
Expand Down
2 changes: 1 addition & 1 deletion fetch_z3.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash

set -e

Expand Down

0 comments on commit ff3f1d5

Please sign in to comment.