Contents of /branches/mage-next/src/up2date/berlios.sh.in
Parent Directory | Revision Log
Revision 2591 -
(show annotations)
(download)
Tue Mar 4 08:35:27 2014 UTC (10 years, 6 months ago) by niro
File size: 625 byte(s)
Tue Mar 4 08:35:27 2014 UTC (10 years, 6 months ago) by niro
File size: 625 byte(s)
-split function into single includes
1 | updatecmd_berlios() |
2 | { |
3 | local projectname="$1" |
4 | local pname="$2" |
5 | local uri |
6 | local group_id |
7 | |
8 | [[ -z ${projectname} ]] && die "give me a \$PROJECTNAME" |
9 | [[ -z ${pname} ]] && pname="${projectname}" |
10 | |
11 | uri="http://developer.berlios.de/projects/${projectname}" |
12 | group_id=$(updatecmd "${uri}" | grep showfiles | sed 's/.*group_id=\(.*\)&.*/\1/;q') |
13 | |
14 | # debug |
15 | # echo group_id=${group_id} |
16 | # echo package_link_id=${package_link_id} |
17 | # echo package_id=${package_id} |
18 | |
19 | uri="http://developer.berlios.de/project/showfiles.php?group_id=${group_id}" |
20 | updatecmd "${uri}" | grep -A3 "^${pname}$" | sed -n 's/.*\[.*]\(.*\) .*[0-9]-.*/\1/;$ p' |
21 | } |