1 |
#!/bin/bash |
#!/bin/sh |
2 |
# |
# |
3 |
# $Header$ |
# $Header$ |
4 |
# |
# |
216 |
cat $1 | sed -e 's/#.*$//g' \ |
cat $1 | sed -e 's/#.*$//g' \ |
217 |
| $AWK 'BEGIN{nn=0;} (NF>0){ for(i=2;i<=NF;i++){nn++; print "PNAME["nn"]="$1"\nDNAME["nn"]="$i} }' \ |
| $AWK 'BEGIN{nn=0;} (NF>0){ for(i=2;i<=NF;i++){nn++; print "PNAME["nn"]="$1"\nDNAME["nn"]="$i} }' \ |
218 |
> ./.pd_tmp |
> ./.pd_tmp |
219 |
source ./.pd_tmp |
. ./.pd_tmp |
220 |
rm -f ./.pd_tmp |
rm -f ./.pd_tmp |
221 |
|
|
222 |
echo -n "PNAME = "${} |
echo -n "PNAME = "${} |
450 |
gm_local="genmake_local" |
gm_local="genmake_local" |
451 |
for i in . $MODS ; do |
for i in . $MODS ; do |
452 |
if test -r $i/$gm_local ; then |
if test -r $i/$gm_local ; then |
453 |
source $i/$gm_local |
. $i/$gm_local |
454 |
break |
break |
455 |
fi |
fi |
456 |
done |
done |
457 |
echo -n " getting local config information: " |
echo -n " getting local config information: " |
458 |
if test -e $gm_local ; then |
if test -e $gm_local ; then |
459 |
echo "using $gm_local" |
echo "using $gm_local" |
460 |
source $gm_local |
. $gm_local |
461 |
# echo "DISABLE=$DISABLE" |
# echo "DISABLE=$DISABLE" |
462 |
# echo "ENABLE=$ENABLE" |
# echo "ENABLE=$ENABLE" |
463 |
else |
else |
661 |
if test "x$OPTFILE" != xNONE ; then |
if test "x$OPTFILE" != xNONE ; then |
662 |
if test -f "$OPTFILE" -a -r "$OPTFILE" ; then |
if test -f "$OPTFILE" -a -r "$OPTFILE" ; then |
663 |
echo " using OPTFILE=\"$OPTFILE\"" |
echo " using OPTFILE=\"$OPTFILE\"" |
664 |
source "$OPTFILE" |
. "$OPTFILE" |
665 |
RETVAL=$? |
RETVAL=$? |
666 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
667 |
echo -n "Error: failed to source OPTFILE \"$OPTFILE\"" |
echo -n "Error: failed to source OPTFILE \"$OPTFILE\"" |
688 |
if test "x${AD_OPTFILE}" != xNONE ; then |
if test "x${AD_OPTFILE}" != xNONE ; then |
689 |
if test -f "$AD_OPTFILE" -a -r "$AD_OPTFILE" ; then |
if test -f "$AD_OPTFILE" -a -r "$AD_OPTFILE" ; then |
690 |
echo " using AD_OPTFILE=\"$AD_OPTFILE\"" |
echo " using AD_OPTFILE=\"$AD_OPTFILE\"" |
691 |
source "$AD_OPTFILE" |
. "$AD_OPTFILE" |
692 |
RETVAL=$? |
RETVAL=$? |
693 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
694 |
echo -n "Error: failed to source AD_OPTFILE \"$AD_OPTFILE\"" |
echo -n "Error: failed to source AD_OPTFILE \"$AD_OPTFILE\"" |
886 |
echo "Error: unable to parse package dependencies -- please check PDEPEND=\"$PDEPEND\"" |
echo "Error: unable to parse package dependencies -- please check PDEPEND=\"$PDEPEND\"" |
887 |
exit 1 |
exit 1 |
888 |
fi |
fi |
889 |
source ./.pd_tmp |
. ./.pd_tmp |
890 |
rm -f ./.pd_tmp |
rm -f ./.pd_tmp |
891 |
|
|
892 |
# Search for default packages. Note that a "$ROOTDIR/pkg/pkg_groups" |
# Search for default packages. Note that a "$ROOTDIR/pkg/pkg_groups" |