Age | Commit message (Collapse) | Author |
|
|
|
|
|
$ ./kerl update releases
The available releases are:
cat: /home/travis/.kerl/otp_spaces: No such file or directory
This reverts commit 536e9f4895d1c1e91338228f2a73a1af5a6cfd42.
|
|
|
|
|
|
if [ -f "$KERL_CONFIG" ]; then . "$KERL_CONFIG"; fi
^-- SC1090: Can't follow non-constant source. Use a directive to specify location.
|
|
count=$(ls -la "$1" | wc -l)
^-- SC2012: Use find instead of ls to better handle non-alphanumeric filenames.
|
|
PARENT_CMD=$(ps -p $PARENT_PID -o ucomm | tail -n 1)
^-- SC2086: Double quote to prevent globbing and word splitting.
|
|
RELVERSION=$(get_otp_version "$1")
^-- SC2034: RELVERSION appears unused. Verify it or export it.
|
|
In kerl line 1320:
if ! ssh $KERL_DEPLOY_SSH_OPTIONS "$host" "cd \"$remotepath\" && env ERL_TOP=\"\$(pwd)\" ./Install $INSTALL_OPT \"\$(pwd)\" >/dev/null 2>&1"; then
^-- SC2029: Note that, unescaped, this expands on the client side.
In kerl line 1326:
if ! ssh $KERL_DEPLOY_SSH_OPTIONS "$host" "cd \"$remotepath\" && sed -i -e \"s#$path#\"\$(pwd)\"#g\" activate"; then
^-- SC2029: Note that, unescaped, this expands on the client side.
|
|
CFLAGS="$CFLAGS" DED_LD="$DED_LD" CC="$CC" DED_LDFLAGS="$DED_LDFLAGS" $@
^-- SC2068: Double quote array expansions to avoid re-splitting elements.
In kerl line 631:
CFLAGS="$CFLAGS" $@
^-- SC2068: Double quote array expansions to avoid re-splitting elements.
In kerl line 636:
CFLAGS="$CFLAGS" $@
^-- SC2068: Double quote array expansions to avoid re-splitting elements.
|
|
tail -n +$(($INDEX+3)) "$1" | \
^-- SC2004: $/${} is unnecessary on arithmetic variables.
|
|
In kerl line 732:
./otp_build autoconf $KERL_CONFIGURE_OPTIONS >>"$LOGFILE" 2>&1 && \
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 733:
_flags ./otp_build configure $KERL_CONFIGURE_OPTIONS >>"$LOGFILE" 2>&1
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 735:
_flags ./otp_build configure $KERL_CONFIGURE_OPTIONS >>"$LOGFILE" 2>&1
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 740:
if ! _flags ./otp_build configure $KERL_CONFIGURE_OPTIONS >>"$LOGFILE" 2>&1; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 772:
if ! _flags ./otp_build boot -a $KERL_CONFIGURE_OPTIONS >>"$LOGFILE" 2>&1; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1240:
"$1"/bin/dialyzer --output_plt "$plt" --build_plt --apps $apps >>"$build_log" 2>&1
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1300:
if ! ssh $KERL_DEPLOY_SSH_OPTIONS "$host" true >/dev/null 2>&1; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1307:
if ! rsync -aqz -e "ssh $KERL_DEPLOY_SSH_OPTIONS" $KERL_DEPLOY_RSYNC_OPTIONS "$path/" "$host:$remotepath/"; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1312:
if ! ssh $KERL_DEPLOY_SSH_OPTIONS "$host" "cd \"$remotepath\" && env ERL_TOP=\"\$(pwd)\" ./Install $INSTALL_OPT \"\$(pwd)\" >/dev/null 2>&1"; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1317:
if ! ssh $KERL_DEPLOY_SSH_OPTIONS "$host" "cd \"$remotepath\" && sed -i -e \"s#$path#\"\$(pwd)\"#g\" activate"; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 2033:
printf "$FMT" "$VALUE"
^-- SC2059: Don't use variables in the printf format string. Use printf "..%s.." "$foo".
|
|
echo $1 | sed $SED_OPT -e 's/R?([0-9]{1,2}).+/\1/'
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 490:
INDEX=$(grep -n -m1 "$2" $1 | cut -d: -f1)
^-- SC2086: Double quote to prevent globbing and word splitting.
--
tail -n +$(($INDEX+3)) $1 | \
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 586:
download $1
^-- SC2086: Double quote to prevent globbing and word splitting.
--
In kerl line 652:
if ! echo $KERL_CONFIGURE_OPTIONS | grep "darwin-64bit" >/dev/null 2>&1; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 658:
if ! echo $KERL_CONFIGURE_OPTIONS | grep "ssl" >/dev/null 2>&1; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 732:
./otp_build autoconf $KERL_CONFIGURE_OPTIONS >>"$LOGFILE" 2>&1 && \
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 738:
if ! echo $KERL_CONFIGURE_OPTIONS | grep "--enable-native-libs" >/dev/null 2>&1; then
^-- SC2086: Double quote to prevent globbing and word splitting.
--
In kerl line 1110:
PARENT_CMD=$(ps -p $PARENT_PID -o ucomm | tail -n 1)
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1137:
OTP_VERSION=$(get_otp_version $1)
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1140:
if ! echo $OTP_VERSION | grep "$DOCSH_SUPPORTED" >/dev/null 2>&1; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1163:
if ! git clone -l "$KERL_GIT_DIR/$GIT" $DOCSH_DIR >/dev/null 2>&1; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1167:
cd $DOCSH_DIR || exit 1
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1183:
if [ -f $ACTIVE_PATH/lib/docsh ]; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1188:
cp -R $DOCSH_DIR/_build/default/lib/docsh $ACTIVE_PATH/lib/
^-- SC2086: Double quote to prevent globbing and word splitting.
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1191:
if [ -f $ACTIVE_PATH/lib/docsh/dot.erlang ]; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1196:
cat $DOCSH_DIR/templates/dot.erlang >$ACTIVE_PATH/lib/docsh/dot.erlang
^-- SC2086: Double quote to prevent globbing and word splitting.
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1199:
if [ -f $HOME/.erlang ]; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1206:
if [ -f $ACTIVE_PATH/lib/docsh/user_default.beam ]; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1211:
erlc -I $DOCSH_DIR/include -o $ACTIVE_PATH/lib/docsh/ $DOCSH_DIR/templates/user_default.erl
^-- SC2086: Double quote to prevent globbing and word splitting.
^-- SC2086: Double quote to prevent globbing and word splitting.
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1235:
mkdir -p $dialyzerd || exit 1
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1239:
dirs=$(find $1/lib -maxdepth 2 -name ebin -type d -exec dirname {} \;)
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1240:
apps=$(for app in $dirs; do basename $app | cut -d- -f1 ; done | grep -Ev 'erl_interface|jinterface' | xargs echo)
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1241:
$dialyzer --output_plt $plt --build_plt --apps $apps >>$build_log 2>&1
^-- SC2086: Double quote to prevent globbing and word splitting.
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1259:
echo $plt
^-- SC2086: Double quote to prevent globbing and word splitting.
--
In kerl line 1425:
INSTALLED_NAME=$(get_name_from_install_path $candidate)
^-- SC2086: Double quote to prevent globbing and word splitting.
--
In kerl line 1437:
if [ $count -ne 3 ]; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1578:
if [ $release -ge 17 ]; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 1943:
if [ "$(basename $ins)" = "$2" ]; then
^-- SC2086: Double quote to prevent globbing and word splitting.
|
|
GIT=$(echo -n "$1" | $MD5SUM | cut -d ' ' -f $MD5SUM_FIELD)
^-- SC2039: In POSIX sh, echo flags are undefined.
--
In kerl line 652:
if ! echo -n $KERL_CONFIGURE_OPTIONS | grep "darwin-64bit" >/dev/null 2>&1; then
^-- SC2039: In POSIX sh, echo flags are undefined.
--
In kerl line 658:
if ! echo -n $KERL_CONFIGURE_OPTIONS | grep "ssl" >/dev/null 2>&1; then
^-- SC2039: In POSIX sh, echo flags are undefined.
--
In kerl line 738:
if ! echo -n $KERL_CONFIGURE_OPTIONS | grep "--enable-native-libs" >/dev/null 2>&1; then
^-- SC2039: In POSIX sh, echo flags are undefined.
--
In kerl line 1131:
GIT=$(echo -n $REPO_URL | $MD5SUM | cut -d ' ' -f $MD5SUM_FIELD)
^-- SC2039: In POSIX sh, echo flags are undefined.
--
In kerl line 1344:
local dir_context path
^-- SC2039: In POSIX sh, 'local' is undefined.
In kerl line 1369:
local target path
^-- SC2039: In POSIX sh, 'local' is undefined.
In kerl line 1394:
local dir file
^-- SC2039: In POSIX sh, 'local' is undefined.
|
|
|
|
|
|
OSVERSION=`uname -r`
^-- SC2006: Use $(..) instead of legacy `..`.
--
RELVERSION=`get_otp_version "$1"`
^-- SC2034: RELVERSION appears unused. Verify it or export it.
^-- SC2006: Use $(..) instead of legacy `..`.
--
In kerl line 1239:
dirs=`find $1/lib -maxdepth 2 -name ebin -type d -exec dirname {} \;`
^-- SC2006: Use $(..) instead of legacy `..`.
--
In kerl line 1240:
apps=`for app in $dirs; do basename $app | cut -d- -f1 ; done | grep -Ev 'erl_interface|jinterface' | xargs echo`
^-- SC2006: Use $(..) instead of legacy `..`.
--
In kerl line 2003:
ACTIVE_PATH=`get_active_path`
^-- SC2006: Use $(..) instead of legacy `..`.
In kerl line 2016:
ACTIVE_PATH=`get_active_path`
^-- SC2006: Use $(..) instead of legacy `..`.
|
|
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 414:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 423:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 429:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 432:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 658:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 666:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 747:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 751:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 767:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 777:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 785:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 793:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 799:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 814:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 828:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 1158:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 1168:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 1175:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 1184:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 1190:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 1193:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
In kerl line 1200:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 1326:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 1334:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 1340:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 1346:
if [ $? -ne 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
--
In kerl line 1374:
if [ $? -eq 0 ]; then
^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
|
|
if [ "$name" = "$1" -o "$path" = "$1" ]; then
^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
In kerl line 339:
if [ -n "$has_dpkg" -o -n "$has_rpm" ]; then
^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
In kerl line 341:
if [ -n "$has_dpkg" -a -n "$has_rpm" ]; then
^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
--
In kerl line 577:
elif [ "$1" -ge 17 -a "$1" -le 19 ]; then
^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
--
In kerl line 671:
if [ -n "$whichbrew" -a -x "$whichbrew" ]; then
^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
In kerl line 673:
if [ -n "$brew_prefix" -a -d "$brew_prefix" ]; then
^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
In kerl line 676:
elif [ ! -d /usr/include/openssl -o ! -d /usr/local/include/openssl ]; then
^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
--
In kerl line 1270:
if [ $status -eq 0 -o $status -eq 2 ]; then
^-- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
|
|
| egrep -o 'OTP[_-][^^{}]+' \
^-- SC2196: egrep is non-standard and deprecated. Use grep -E instead.
Introduced by fe5ffaec1eea70c976df0638b6ca2965af7e27eb in PR 122
|
|
: ${OTP_GITHUB_URL:="https://github.com/erlang/otp"}
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 43:
: ${KERL_BASE_DIR:="$HOME"/.kerl}
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 44:
: ${KERL_CONFIG:="$HOME"/.kerlrc}
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 45:
: ${KERL_DOWNLOAD_DIR:="${KERL_BASE_DIR:?}"/archives}
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 46:
: ${KERL_BUILD_DIR:="${KERL_BASE_DIR:?}"/builds}
^-- SC2086: Double quote to prevent globbing and word splitting.
In kerl line 47:
: ${KERL_GIT_DIR:="${KERL_BASE_DIR:?}"/gits}
^-- SC2086: Double quote to prevent globbing and word splitting.
Introduced by: 9132af32d3df95e476baf8318948bbc1aae2d637
|
|
GREP_OPTIONS=''
^-- SC2034: GREP_OPTIONS appears unused. Verify it or export it.
Introduced by: 2107b4699b5e23c90f89004da5a68a4110c5bf23
|
|
Major docsh changes since 0.4.0:
- Support Erlang 20 "Dbgi" chunk (01661fa)
- Guess source file location even if src/ has a hierarchical structure (b442346)
- Fix inconsistent lookup times (7149177)
- Expand shell helper documentation (ab3e143)
- Clean up remaining compiler / Dialyzer warnings (60a202f)
- Apply gomoripeti's fix for proplists' doc retrieval (5407e56)
- Describe manual docsh setup (ecf3582)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`kerl delete installation` allows deleting by name or path.
Problem is, if you provide the name it tries to check for a
file `"$name"/activate` instead of using the path, and fails.
|
|
|
|
Install docsh
|
|
Underscore was missing in function name.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|