Showing 1 changed files with 1 additions and 43 deletions
+1 -43
.fgfs/fgfs_function
... ...
@@ -44,49 +44,7 @@ function fgfs () {
44 44
                 unset control_system_data control_system update_command
45 45
                 ;;
46 46
             check)
47
-                typeset -A revision builtstatus
48
-                for component in simgear flightgear; do
49
-                    cd $fgfs_source/$component
50
-                    revision[$component]=$(git rev-parse HEAD)
51
-                    cd - > /dev/null 2>&1
52
-                done
53
-                xmlgetnext () {
54
-                   local IFS='>'
55
-                   read -d '<' TAG VALUE
56
-                }
57
-                unset entryid
58
-                wget -qO- http://build.flightgear.org:8080/job/fgfs/rssAll | while xmlgetnext; do
59
-                    case "$TAG" in
60
-                        "entry")
61
-                            let entryid++
62
-                            unset stable jenkins_id updated
63
-                            ;;
64
-                        "title")
65
-                            test -n "$entryid" && stable=$(sed -r 's/^.*\((.+)\)/\1/' <<< "$VALUE")
66
-                            ;;
67
-                        "id")
68
-                            test -n "$entryid" && jenkins_id="${VALUE##*:}"
69
-                            ;;
70
-                        "updated")
71
-                            test -n "$entryid" && updated="$VALUE"
72
-                            ;;
73
-                        "/entry")
74
-                            joburl=http://build.flightgear.org:8080/job/fgfs/$jenkins_id
75
-                            regex='s|^.+<strong>Revision:</strong> (.+)$|\1|p'
76
-                            if test "$(wget -qO- $joburl/git-2/ | sed -rn $regex)" = ${revision[simgear]} -a \
77
-                                    "$(wget -qO- $joburl/git-3/ | sed -rn $regex)" = ${revision[flightgear]}; then
78
-                                echo $(date +"$stable (#$jenkins_id, updated %d %B, %H:%M)" -d "$updated")
79
-                                unset revision builtstatus entryid
80
-                                return 0
81
-                            elif test $entryid -eq 5; then
82
-                                echo $(date +"no build info found (last %d %B, %H:%M)" -d "$updated")
83
-                                unset revision builtstatus entryid
84
-                                return 1
85
-                            fi
86
-                            ;;
87
-                    esac
88
-                done
89
-                ;;
47
+                test -r $HOME/.fgfs/jenkins-status && bash $HOME/.fgfs/jenkins-status;;
90 48
             build)
91 49
                 local simultaneous=$(nproc)
92 50
                 local previously_installed=()