- Removed deprecated oldstyle commit methods.
[platform/upstream/libzypp.git] / devel / devel.ma / ma_test
1 #! /bin/bash
2 #
3 #export LD_LIBRARY_PATH=/usr/local/lib64
4
5 PRG=Main
6
7 if [ -n "$1" ]; then
8        PRG=$1
9        shift
10 fi
11
12 if [ ! -x ~ma/bin/sy2l.tcl ]; then
13         exec ./$PRG
14 fi
15
16 LPIPE=LOGFILE
17
18 test -p "$LPIPE" || {
19         test -e "$LPIPE" && { echo "No pipe '$LPIPE' exists"; exit 1; }
20         mkfifo $LPIPE
21 }
22 if ! fuser $LPIPE >/dev/null; then
23         ~ma/bin/sy2l.tcl $LPIPE &
24 fi
25
26 if ps axl | grep -q '[/]usr/sbin/iceccd'; then
27         MAKE="make -j 15"
28 else
29         MAKE=make
30 fi
31
32 $MAKE $PRG || exit 1
33
34 export ZYPP_LOGFILE=-
35 export ZYPP_KEYRING_DEFAULT_ACCEPT_ALL=1
36 ./$PRG "$@" 2> $LPIPE