Skip to content

Cleanups of various bash scripts #670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 20, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions utils/install-package-helper.sh

This file was deleted.

129 changes: 0 additions & 129 deletions utils/install-test-script.sh

This file was deleted.

10 changes: 5 additions & 5 deletions utils/swift-stdlib-tool-substitute
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ argv=("$@")
have_source_libraries=NO
platform=""
set -- "$@"
while [[ $# > 0 ]]; do
while [[ $# -gt 0 ]]; do
case "$1" in
--source-libraries)
shift
if [[ $# > 0 ]]; then
if [[ $# -gt 0 ]]; then
have_source_libraries=YES
fi
;;
--platform)
shift
if [[ $# > 0 ]]; then
if [[ $# -gt 0 ]]; then
platform="$1"
fi
;;
Expand All @@ -63,8 +63,8 @@ elif [[ "$platform" = "" ]]; then
exit 1
else
# Construct a new --source-libraries argument.
bindir=`dirname "$self_path"`
usrdir=`dirname "$bindir"`
bindir=$(dirname "$self_path")
usrdir=$(dirname "$bindir")
source_libraries="$usrdir/lib/swift/$platform"
if [ ! -d "$source_libraries" -o ! -x "$source_libraries" ]; then
echo "$self_path: error: platform path inaccessible: $source_libraries"
Expand Down
2 changes: 1 addition & 1 deletion validation-test/SIL/Inputs/gen_parse_stdlib_tests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

process_count=17
process_id_max=$(($process_count - 1))
process_id_max=$((process_count - 1))

for id in $(seq 0 $process_id_max); do

Expand Down