Commit 2aa85353 authored by Mihai Moldovan's avatar Mihai Moldovan Committed by Mike Gabriel

debian/roll-tarballs.sh: more quotes, more curly braces, replace cd with pushd and pop.

parent c36501b5
...@@ -52,7 +52,7 @@ else ...@@ -52,7 +52,7 @@ else
fi fi
if [ x"$RELEASE" == "xHEAD" ]; then if [ x"$RELEASE" == "xHEAD" ]; then
CHECKOUT=refs/heads/$(git rev-parse --abbrev-ref HEAD) CHECKOUT="refs/heads/$(git rev-parse --abbrev-ref HEAD)"
fi fi
if ! git rev-parse --verify -q "$CHECKOUT" >/dev/null; then if ! git rev-parse --verify -q "$CHECKOUT" >/dev/null; then
...@@ -80,14 +80,14 @@ cd "${TEMP_DIR}/${PROJECT}-${RELEASE}/" ...@@ -80,14 +80,14 @@ cd "${TEMP_DIR}/${PROJECT}-${RELEASE}/"
# Replace symlinks by copies of the linked target files # Replace symlinks by copies of the linked target files
# Note: We don't have symlinked directories!!! # Note: We don't have symlinked directories!!!
find . -type l | while read link; do find . -type "l" | while read link; do
TARGET=$(readlink "$link") TARGET="$(readlink "${link}")"
cd $(dirname "$link") pushd "$(dirname "${link}")" >/dev/null
if [ -f "$TARGET" ]; then if [ -f "${TARGET}" ]; then
rm -f $(basename "$link") rm -f "$(basename "${link}")"
cp "${TARGET}" $(basename "$link") cp "${TARGET}" "$(basename "${link}")"
fi fi
cd - 1>/dev/null popd >/dev/null
done done
mkdir -p "doc/applied-patches" mkdir -p "doc/applied-patches"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment