Changeset View
Changeset View
Standalone View
Standalone View
share/genbuild.sh
#!/bin/sh | #!/bin/sh | ||||
# Copyright (c) 2012-2016 The Bitcoin Core developers | # Copyright (c) 2012-2016 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
if [ $# -gt 1 ]; then | if [ $# -gt 1 ]; then | ||||
cd "$2" | cd "$2" || exit 1 | ||||
fi | fi | ||||
if [ $# -gt 0 ]; then | if [ $# -gt 0 ]; then | ||||
FILE="$1" | FILE="$1" | ||||
shift | shift | ||||
if [ -f "$FILE" ]; then | if [ -f "$FILE" ]; then | ||||
INFO="$(head -n 1 "$FILE")" | INFO="$(head -n 1 "$FILE")" | ||||
fi | fi | ||||
else | else | ||||
Show All 33 Lines |