1365 |
done |
done |
1366 |
|
|
1367 |
# clean up backup files (foo~) |
# clean up backup files (foo~) |
1368 |
find ${MAGEDIR} -name *~ -exec rm '{}' ';' |
find ${MAGEDIR} -name \*~ -exec rm '{}' ';' |
1369 |
|
|
1370 |
# check if a newer mage version is available |
# check if a newer mage version is available |
1371 |
is_newer_mage_version_available |
is_newer_mage_version_available |
1575 |
local magefile |
local magefile |
1576 |
|
|
1577 |
# do not list the content of a directory, only the name (-d) |
# do not list the content of a directory, only the name (-d) |
1578 |
for magefile in $(ls --format=single-column -v -d ${MAGEDIR}/${PCAT}/${PNAME}/*) |
for magefile in $(ls --format=single-column -v -d ${MAGEDIR}/${PCAT}/${PNAME}/* 2> /dev/null) |
1579 |
do |
do |
1580 |
[[ -z ${magefile} ]] && continue |
[[ -z ${magefile} ]] && continue |
1581 |
# we exclude subdirs (for stuff like a md5sum dir) |
# we exclude subdirs (for stuff like a md5sum dir) |
2462 |
if [[ -n ${MAGE_TARGETS} ]] |
if [[ -n ${MAGE_TARGETS} ]] |
2463 |
then |
then |
2464 |
# basic svn compat |
# basic svn compat |
2465 |
if [[ -d ${SMAGESCRIPTSDIR}/trunk ]] |
if [[ -d ${SMAGESCRIPTSDIR}/.svn ]] |
2466 |
then |
then |
2467 |
for i in ${SMAGESCRIPTSDIR}/trunk/*/${pname/${MAGE_TARGETS}/}/${pname/${MAGE_TARGETS}/}-${pver}-${pbuild}.smage2 |
for i in ${SMAGESCRIPTSDIR}/*/${pname/${MAGE_TARGETS}/}/${pname/${MAGE_TARGETS}/}-${pver}-${pbuild}.smage2 |
2468 |
do |
do |
2469 |
smage2file="${i}" |
smage2file="${i}" |
2470 |
done |
done |
2475 |
elif [[ -n ${SPLIT_PACKAGE_BASE} ]] |
elif [[ -n ${SPLIT_PACKAGE_BASE} ]] |
2476 |
then |
then |
2477 |
# basic svn compat |
# basic svn compat |
2478 |
if [[ -d ${SMAGESCRIPTSDIR}/trunk ]] |
if [[ -d ${SMAGESCRIPTSDIR}/.svn ]] |
2479 |
then |
then |
2480 |
for i in ${SMAGESCRIPTSDIR}/trunk/*/${SPLIT_PACKAGE_BASE}/${SPLIT_PACKAGE_BASE}-${pver}-${pbuild}.smage2 |
for i in ${SMAGESCRIPTSDIR}/*/${SPLIT_PACKAGE_BASE}/${SPLIT_PACKAGE_BASE}-${pver}-${pbuild}.smage2 |
2481 |
do |
do |
2482 |
smage2file="${i}" |
smage2file="${i}" |
2483 |
done |
done |
2487 |
|
|
2488 |
else |
else |
2489 |
# basic svn compat |
# basic svn compat |
2490 |
if [[ -d ${SMAGESCRIPTSDIR}/trunk ]] |
if [[ -d ${SMAGESCRIPTSDIR}/.svn ]] |
2491 |
then |
then |
2492 |
for i in ${SMAGESCRIPTSDIR}/trunk/*/${pname}/${pname}-${pver}-${pbuild}.smage2 |
for i in ${SMAGESCRIPTSDIR}/*/${pname}/${pname}-${pver}-${pbuild}.smage2 |
2493 |
do |
do |
2494 |
smage2file="${i}" |
smage2file="${i}" |
2495 |
done |
done |