blob: 2093f033ad77a3cdfe0dc928836f15cd9d39eea0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#! /bin/bash
#
# war -- wrapper for the archiver
#
# Executed by ATLAS build as:
# full_path/war ARCHIVER ARFLAGS LIBNAME.a OBJS.lo
TOPDIR=$(echo $0 | sed 's/\(.*\)\/.*/\1/')
PWD=$(pwd)
ARCHIVER=$1
LIBRARY=$(echo $3 | sed 's/.*\/\(.*\)/\1/')
OBJ_DIR=${TOPDIR}/gentoo/$LIBRARY
if [ ! -x $OBJ_DIR ]; then mkdir -p ${OBJ_DIR}/.libs; fi
$ARCHIVER $@
shift 3
for obj in $@ ; do
lobj=$(echo $obj | sed 's/\.o/\.lo/')
ln -sf ${PWD}/$obj ${OBJ_DIR}/$obj
ln -sf ${PWD}/$lobj ${OBJ_DIR}/$lobj
ln -sf ${PWD}/.libs/$obj ${OBJ_DIR}/.libs/$obj
done
|