44 |
exit 1 |
exit 1 |
45 |
} |
} |
46 |
|
|
47 |
# always default debug=0 |
# set some sane defaults |
48 |
DEBUG=0 |
DEBUG=0 |
49 |
|
SMAGE_DEPEND=0 |
50 |
|
|
51 |
# very basic getops |
# very basic getops |
52 |
for i in $* |
for i in $* |
58 |
--pbuild|-b) shift; PBUILD="$1" ;; |
--pbuild|-b) shift; PBUILD="$1" ;; |
59 |
--method|-m) shift; METHOD="$1" ;; |
--method|-m) shift; METHOD="$1" ;; |
60 |
--debug|-d) shift; DEBUG=1 ;; |
--debug|-d) shift; DEBUG=1 ;; |
61 |
--smage|-s) shift; SMAGEFILE="$1"; SILENT=1; FVERBOSE=off ;; |
--smage|-s) shift; SMAGEFILE="$1"; SMAGE_DEPEND=1; SILENT=1; FVERBOSE=off ;; |
62 |
--help|-h) usage ;; |
--help|-h) usage ;; |
63 |
esac |
esac |
64 |
shift |
shift |
79 |
[ -z "${INSTALLDB}" ] && die "\$INSTALLDB not set." |
[ -z "${INSTALLDB}" ] && die "\$INSTALLDB not set." |
80 |
[ -z "${BUILDDIR}" ] && die "\$BUILDDIR not set." |
[ -z "${BUILDDIR}" ] && die "\$BUILDDIR not set." |
81 |
|
|
82 |
|
# load mage-features to support them with smagesource() |
83 |
|
load_mage_features |
84 |
|
|
85 |
# other needed vars |
# other needed vars |
86 |
ALLDEPS="" |
ALLDEPS="" |
87 |
if [[ -n ${SMAGEFILE} ]] |
if [[ -n ${SMAGEFILE} ]] |