Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
vim indendation marks added to the sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Wisniewski committed Jul 11, 2014
1 parent 06be50e commit 3d11dd6
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 4 deletions.
15 changes: 11 additions & 4 deletions COLABORATION
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
bashnapi is an open project I accept pull requests gladly. Please feel free to contact me if you would like to collaborate or post a patch for this project.
Bashnapi is an open project I accept pull requests gladly. Please feel free to contact me if you would like to collaborate or post a patch for this project.

Rules of thumb:
===============

- always fork the dev branch (your changes before merged to master will be merged there). dev represents current development state of the project and contains the newest code.
- before posting a patch TEST it. Perform some manual verification first and use bashnapi test environment to verify if your delivery didn't brake anything else.
- write tests for your code (refer to test suite readme under tests/ subdirectory for more details)
- Always fork the dev branch (your changes before merged to master will be merged there). dev represents current development state of the project and contains the newest code.

- Before posting a patch TEST it. Perform some manual verification first and use bashnapi test environment to verify if your delivery didn't brake anything else.

- Write tests for your code (refer to test suite's readme under tests/ subdirectory for more details)

- If using any different editor than vim, remember to use correct indendation settings:
-- use spaces instead of TABS for indendation
-- indendation depth = 4 spaces

3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

BIN_dir='/usr/bin'
SHARED_dir='/usr/share'

Expand Down
3 changes: 3 additions & 0 deletions test_tools.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

test_tool() {
eval "$2" > /tmp/tmp_result 2> /tmp/tmp_err

Expand Down
3 changes: 3 additions & 0 deletions tests/mocks/wget_help
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

read -r -d '' h1 << HELP1
BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4.1) multi-call binary.
Expand Down
4 changes: 4 additions & 0 deletions tests/mocks/wget_log
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

retval=${1:-0}
response=${2:-200}
url="$3"
Expand Down
3 changes: 3 additions & 0 deletions tests/prepare_gcc3.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

path_root=""

if [[ -z "$1" ]]; then
Expand Down
3 changes: 3 additions & 0 deletions tests/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

path_root="/home/vagrant";

vagrant up
Expand Down
3 changes: 3 additions & 0 deletions tests/unit_napi.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

################################################################################

# Copyright (C) 2014 Tomasz Wisniewski aka
Expand Down
3 changes: 3 additions & 0 deletions tests/unit_napi_common.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

################################################################################

# Copyright (C) 2014 Tomasz Wisniewski aka
Expand Down
3 changes: 3 additions & 0 deletions tests/unit_subotage_awk.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

declare -r SHUNIT_TESTS_AWK="/usr/bin/original-awk"

echo "====================================="
Expand Down
3 changes: 3 additions & 0 deletions tests/unit_subotage_common.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

################################################################################

# Copyright (C) 2014 Tomasz Wisniewski aka
Expand Down
3 changes: 3 additions & 0 deletions tests/unit_subotage_gawk.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

declare -r SHUNIT_TESTS_AWK="/usr/bin/gawk"

echo "====================================="
Expand Down
3 changes: 3 additions & 0 deletions tests/unit_subotage_mawk.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# force indendation settings
# vim: ts=4 shiftwidth=4 expandtab

declare -r SHUNIT_TESTS_AWK="/usr/bin/mawk"

echo "====================================="
Expand Down

0 comments on commit 3d11dd6

Please sign in to comment.