aboutsummaryrefslogtreecommitdiffstats
path: root/kerl
AgeCommit message (Collapse)Author
2018-03-14shellcheck: SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.Pierre Fenoll
2018-03-14shellcheck: fix shellcheck issues in sh activate scriptPierre Fenoll
2018-03-14Revert "shellcheck: FIX: use $2 as seems intended in list_print"Pierre Fenoll
$ ./kerl update releases The available releases are: cat: /home/travis/.kerl/otp_spaces: No such file or directory This reverts commit 536e9f4895d1c1e91338228f2a73a1af5a6cfd42.
2018-03-14shellcheck: looks like this cannot be compared as integersPierre Fenoll
2018-03-14shellcheck: turn some "s into 'sPierre Fenoll
2018-03-14In kerl line 99:Pierre Fenoll
if [ -f "$KERL_CONFIG" ]; then . "$KERL_CONFIG"; fi ^-- SC1090: Can't follow non-constant source. Use a directive to specify location.
2018-03-14In kerl line 1445:Pierre Fenoll
count=$(ls -la "$1" | wc -l) ^-- SC2012: Use find instead of ls to better handle non-alphanumeric filenames.
2018-03-14In kerl line 1113:Pierre Fenoll
PARENT_CMD=$(ps -p $PARENT_PID -o ucomm | tail -n 1) ^-- SC2086: Double quote to prevent globbing and word splitting.
2018-03-14In kerl line 647:Pierre Fenoll
RELVERSION=$(get_otp_version "$1") ^-- SC2034: RELVERSION appears unused. Verify it or export it.
2018-03-14disable some more definite false positivesPierre Fenoll
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.
2018-03-14In kerl line 628:Pierre Fenoll
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.
2018-03-14In kerl line 496:Pierre Fenoll
tail -n +$(($INDEX+3)) "$1" | \ ^-- SC2004: $/${} is unnecessary on arithmetic variables.
2018-03-14disable some definitive false positivesPierre Fenoll
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".
2018-03-14In kerl line 448:Pierre Fenoll
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.
2018-03-14In kerl line 401:Pierre Fenoll
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.
2018-03-14some uniformity around output redirectionPierre Fenoll
2018-03-14shellcheck: FIX: use $2 as seems intended in list_printPierre Fenoll
2018-03-14In kerl line 646:Pierre Fenoll
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 `..`.
2018-03-14In kerl line 407:Pierre Fenoll
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 $?.
2018-03-14In kerl line 303:Pierre Fenoll
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.
2018-03-14In kerl line 209:Pierre Fenoll
| egrep -o 'OTP[_-][^^{}]+' \ ^-- SC2196: egrep is non-standard and deprecated. Use grep -E instead. Introduced by fe5ffaec1eea70c976df0638b6ca2965af7e27eb in PR 122
2018-03-14In kerl line 42:Pierre Fenoll
: ${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
2018-03-14In kerl line 30:Pierre Fenoll
GREP_OPTIONS='' ^-- SC2034: GREP_OPTIONS appears unused. Verify it or export it. Introduced by: 2107b4699b5e23c90f89004da5a68a4110c5bf23
2018-03-09Install docsh 0.5.0Radek Szymczyszyn
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)
2018-03-05Roll 1.8.21.8.2Mark Allen
2018-01-17Add zlib patch to kerl when building between 17-19zlib_patchMark Allen
2017-11-25circleci: build R15B03 with debian 8Pierre Fenoll
2017-11-20Fixed the empty package name warning. (#245)Fred Youhanaie
2017-11-13Roll 1.8.11.8.1Mark Allen
2017-11-13Fix removal messageMark Allen
2017-11-12Delete the correct installation folder when a name is providedLoïc Hoguin
2017-11-12Fix deleting installation by nameLoïc Hoguin
`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.
2017-11-08Roll 1.8.01.8.0Mark Allen
2017-11-08Merge pull request #213 from erszcz/install-docshMark Allen
Install docsh
2017-11-08Fix requirements check on Debian-based systemsDmitri Vereshchagin
Underscore was missing in function name.
2017-11-03Symlink $HOME/.erlang instead of installing a fixed one in tcshRadek Szymczyszyn
2017-11-03Symlink $HOME/.erlang instead of installing a fixed one in fishRadek Szymczyszyn
2017-11-03Add install-docsh to the list of valid commandsRadek Szymczyszyn
2017-11-03Symlink $HOME/.erlang instead of installing a fixed one in bashRadek Szymczyszyn
2017-11-03Fix indentationRadek Szymczyszyn
2017-11-03Use docsh 0.4.0Radek Szymczyszyn
2017-11-03[skip ci] Ask user to reactivate after docsh installationRadek Szymczyszyn
2017-11-03Use a tagged version of docshRadek Szymczyszyn
2017-11-03Check OTP / docsh version compatibilityRadek Szymczyszyn
2017-11-03Enable docsh in activate.cshRadek Szymczyszyn
2017-11-03Fix likely typo: _KERL_SAVED_PROMP -> _KERL_SAVED_PROMPTRadek Szymczyszyn
2017-11-03Enable docsh in activate.fishRadek Szymczyszyn
2017-11-03Remove TODO about docsh url configurabilityRadek Szymczyszyn
2017-11-03Set DOCSH_USER_DEFAULT when activatingRadek Szymczyszyn
2017-11-03Install user_default to the Erlang installation not the buildRadek Szymczyszyn