Commit | Line | Data |
---|---|---|
b0b9d754 JB |
1 | #!/bin/sh |
2 | ||
3972cbb4 | 3 | TOPDIR="$(cd $(dirname $(which $0)); pwd)" |
b0b9d754 JB |
4 | |
5 | PKGADD=$TOPDIR/src/pkgadd | |
6 | PKGMK_CONF=$TOPDIR/src/pkgmk.conf | |
7 | . $PKGMK_CONF | |
8 | ||
9 | if [ -z "$CLFS" ]; then | |
10 | echo "Error, '\$CLFS' value not found" | |
11 | echo "Please configure '$PKGMK_CONF' before use $(basename $0)" | |
12 | exit 1 | |
13 | fi | |
14 | ||
15 | $PKGADD -r $CLFS $@ | |
16 | ||
7113b148 JB |
17 | # we shoudl avoid .la files when crosscompiling, these files |
18 | # contains the libdir variable hardcoded which is used by libtool | |
19 | [ $? -eq 0 ] && find $CLFS -type f -name '*.la' -delete | |
20 | ||
b0b9d754 | 21 | # End of file |