2163 |
local count_current |
local count_current |
2164 |
local magefile |
local magefile |
2165 |
local src_install |
local src_install |
2166 |
|
local i |
2167 |
|
|
2168 |
# very basic getops |
# very basic getops |
2169 |
for i in $* |
for i in $* |
2239 |
|
|
2240 |
if [[ -z ${MAGE_TARGETS} ]] |
if [[ -z ${MAGE_TARGETS} ]] |
2241 |
then |
then |
2242 |
smage2file=${SMAGESCRIPTSDIR}/${pname}/${pname}-${pver}-${pbuild}.smage2 |
# basic svn compat |
2243 |
|
if [[ -d ${SMAGESCRIPTSDIR}/trunk ]] |
2244 |
|
then |
2245 |
|
for i in ${SMAGESCRIPTSDIR}/trunk/*/${pname}/${pname}-${pver}-${pbuild}.smage2 |
2246 |
|
do |
2247 |
|
smage2file="${i}" |
2248 |
|
done |
2249 |
|
else |
2250 |
|
smage2file=${SMAGESCRIPTSDIR}/${pname}/${pname}-${pver}-${pbuild}.smage2 |
2251 |
|
fi |
2252 |
else |
else |
2253 |
smage2file=${SMAGESCRIPTSDIR}/${pname/${MAGE_TARGETS}/}/${pname/${MAGE_TARGETS}/}-${pver}-${pbuild}.smage2 |
# basic svn compat |
2254 |
|
if [[ -d ${SMAGESCRIPTSDIR}/trunk ]] |
2255 |
|
then |
2256 |
|
for i in ${SMAGESCRIPTSDIR}/trunk/*/${pname/${MAGE_TARGETS}/}/${pname/${MAGE_TARGETS}/}-${pver}-${pbuild}.smage2 |
2257 |
|
do |
2258 |
|
smage2file="${i}" |
2259 |
|
done |
2260 |
|
else |
2261 |
|
smage2file=${SMAGESCRIPTSDIR}/${pname/${MAGE_TARGETS}/}/${pname/${MAGE_TARGETS}/}-${pver}-${pbuild}.smage2 |
2262 |
|
fi |
2263 |
fi |
fi |
2264 |
if [ -f "${smage2file}" ] |
if [ -f "${smage2file}" ] |
2265 |
then |
then |