Skip to content
Snippets Groups Projects
Commit 00b57e81 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Merge remote-tracking branch 'tor-gitlab/mr/419'

parents 03a709ea 719169db
No related branches found
No related tags found
No related merge requests found
......@@ -8,15 +8,11 @@ ORIGDIR="$(pwd)"
trap 'cd "$ORIGDIR" && rm -rf "$TMPDIR"' 0
abspath() {
echo "$(cd "$(dirname "$1")">/dev/null && pwd)/$(basename "$1")"
echo "$(cd "$(dirname "$1")" >/dev/null && pwd)/$(basename "$1")"
}
TARGET=$(abspath "$1")
#echo ORIGDIR="$ORIGDIR"
#echo AR="$AR"
#echo ARFLAGS="$AFLAGS"
shift
for input in "$@"; do
......@@ -24,12 +20,11 @@ for input in "$@"; do
abs=$(abspath "$input")
dir="$TMPDIR"/$(basename "$input" .a)
mkdir "$dir"
cd "$dir">/dev/null
cd "$dir" >/dev/null
"${AR:-ar}" x "$abs"
done
cd "$TMPDIR" >/dev/null
#echo "${AR:-ar}" "${ARFLAGS:-cru}" library.tmp.a ./*/**
"${AR:-ar}" "${ARFLAGS:-cru}" library.tmp.a ./*/**
"${RANLIB:-ranlib}" library.tmp.a
mv -f library.tmp.a "$TARGET"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment