Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 75b083bb8d4e255461be4ed51fb4a9d8d8be3a47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash

# Utility to update both 3.x and 4.x index pages

# for testing, may not be in "production" location
if [[ -f /shared/eclipse/sdk/updateIndexFilesFunction.shsource ]] 
then
    source /shared/eclipse/sdk/updateIndexFilesFunction.shsource
else
    source updateIndexFilesFunction.shsource
fi
echo "= = = = invalid args"
updateIndex xys
echo "returned: $?"
updateIndex 8
echo "returned: $?"
updateIndex xyx 8
echo "returned: $?"
updateIndex 8 PDE
echo "returned: $?"
updateIndex 3 CBIxx
echo "returned: $?"
echo "= = = = dual args, MAJOR first" 
updateIndex 3 MAIN
echo "returned: $?"
updateIndex 4 MAIN
echo "returned: $?"
updateIndex 3 PDE
echo "returned: $?"
updateIndex 4 PDE
echo "returned: $?"
updateIndex 3 CBI
echo "returned: $?"
updateIndex 4 CBI
echo "returned: $?"
echo "= = = = dual args, BUILD_TECH first" 
updateIndex MAIN 3
echo "returned: $?"
updateIndex MAIN 4
echo "returned: $?"
updateIndex PDE 3
echo "returned: $?"
updateIndex PDE 4
echo "returned: $?"
updateIndex CBI 3
echo "returned: $?"
updateIndex CBI 4
echo "returned: $?"
echo "= = = = single arg, MAJOR"
updateIndex 3
echo "returned: $?"
updateIndex 4
echo "returned: $?"
echo "= = = = single arg, BUILD_TECH"
updateIndex PDE
echo "returned: $?"
updateIndex CBI
echo "returned: $?"
updateIndex MAIN
echo "returned: $?"
echo "= = = = no arg"
updateIndex 
echo "returned: $?"


Back to the top