CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
added .gitignore file
[pkgutils-cross.git] / pkgadd-cross
CommitLineData
b0b9d754
JB
1#!/bin/sh
2
3972cbb4 3TOPDIR="$(cd $(dirname $(which $0)); pwd)"
b0b9d754
JB
4
5PKGADD=$TOPDIR/src/pkgadd
6PKGMK_CONF=$TOPDIR/src/pkgmk.conf
7. $PKGMK_CONF
8
9if [ -z "$CLFS" ]; then
10 echo "Error, '\$CLFS' value not found"
11 echo "Please configure '$PKGMK_CONF' before use $(basename $0)"
12 exit 1
13fi
14
5e3c934a
JB
15if [ ! -f $CLFS/var/lib/pkg/db ]; then
16 install -d -m 0755 $CLFS/var/lib/pkg
17 touch $CLFS/var/lib/pkg/db
18fi
19
b0b9d754
JB
20$PKGADD -r $CLFS $@
21
7113b148
JB
22# we shoudl avoid .la files when crosscompiling, these files
23# contains the libdir variable hardcoded which is used by libtool
24[ $? -eq 0 ] && find $CLFS -type f -name '*.la' -delete
25
b0b9d754 26# End of file