4 #after new kernel release, we need to change this
11 #check script parameters
12 if [ -r $1 -a -w $2 ]; then
13 echo "begin to update kps_result"
18 echo "usage: $0 linux_kernel_source_dir kps_source_dir"
22 #enter where linux git tree is
24 #as now, we only need to create git log for all and the latest rc, because others
26 echo "Create changelog for ${cur_v}..."
27 git log
-M --date=short
--pretty=format
:"Author: %aN <%ae>; Date: %ad" --shortstat --dirstat --no-merges v
${pre_v}..
>/tmp
/ChangeLog-
${cur_v}
28 git log v
${pre_v}..
--date=short
--pretty=format
:"%ad%n%b" --no-merges >/tmp
/ChangeLog-
${cur_v}-other
29 $KGP/kps_web
/trimother.py
/tmp
/ChangeLog-
${cur_v}-other "report" > /tmp
/ChangeLog-
${cur_v}-report
30 $KGP/kps_web
/trimother.py
/tmp
/ChangeLog-
${cur_v}-other "review" > /tmp
/ChangeLog-
${cur_v}-review
31 $KGP/kps_web
/trimother.py
/tmp
/ChangeLog-
${cur_v}-other "test" > /tmp
/ChangeLog-
${cur_v}-test
32 $KGP/kps_web
/trimother.py
/tmp
/ChangeLog-
${cur_v}-other "ack" > /tmp
/ChangeLog-
${cur_v}-ack
33 $KGP/kps_web
/trimother.py
/tmp
/ChangeLog-
${cur_v}-other "sof" > /tmp
/ChangeLog-
${cur_v}-sof
35 echo "Create changelog for all..."
36 #git log for all is mem consume, just put all history data to one log file for whole log
38 echo >/tmp
/ChangeLog-all
39 echo >/tmp
/Changelogtmp
42 cat /tmp
/ChangeLog-
${loop} > /tmp
/ChangeLog-all
43 echo "" >> /tmp
/ChangeLog-all
44 cat /tmp
/Changelogtmp
>> /tmp
/ChangeLog-all
45 cat /tmp
/ChangeLog-all
> /tmp
/Changelogtmp
47 git log
--date=short
--pretty=format
:"%ad%n%b" --no-merges >/tmp
/ChangeLog-all-other
48 $KGP/kps_web
/trimother.py
/tmp
/ChangeLog-all-other
"report" > /tmp
/ChangeLog-all-report
49 $KGP/kps_web
/trimother.py
/tmp
/ChangeLog-all-other
"review" > /tmp
/ChangeLog-all-review
50 $KGP/kps_web
/trimother.py
/tmp
/ChangeLog-all-other
"test" > /tmp
/ChangeLog-all-test
51 $KGP/kps_web
/trimother.py
/tmp
/ChangeLog-all-other
"ack" > /tmp
/ChangeLog-all-ack
52 $KGP/kps_web
/trimother.py
/tmp
/ChangeLog-all-other
"sof" > /tmp
/ChangeLog-all-sof
55 rm .
/kps_web
/kps_result
/tmp
-rf
56 \
cp .
/kps_web
/china.html .
/kps_web
/kps_result
/china.html
-f
57 \
cp .
/kps_web
/indian.html .
/kps_web
/kps_result
/indian.html
-f
58 \
cp .
/kps_web
/scripts.js .
/kps_web
/kps_result
/ -f
59 \
cp .
/kps_web
/*.png .
/kps_web
/kps_result
/ -f
60 cat .
/kps_web
/index_head.html
>.
/kps_web
/kps_result
/index.php
61 date +"%b. %d %Y (%H:%M %z)" >>.
/kps_web
/kps_result
/index.php
62 cat .
/kps_web
/index_tail.html
>>.
/kps_web
/kps_result
/index.php
63 \
cp .
/kps_web
/index.html .
/kps_web
/kps_result
/index.html
-f
64 \
cp .
/kps_web
/china.php .
/kps_web
/kps_result
/china.php
-f
65 \
cp .
/kps_web
/indian.php .
/kps_web
/kps_result
/indian.php
-f
66 \
cp .
/kps_web
/favicon.ico .
/kps_web
/kps_result
/favicon.ico
-f
67 \
cp .
/kps_web
/nation.php .
/kps_web
/kps_result
/nation.php
-f
69 # no need to produce all_per.tmp for "first time contributor"
70 .
/${TOOLNAME} /tmp
/ChangeLog-all
-e -x .
/kps_web
/kps_result
/all_whole.html
71 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/all_whole.html
"./index.php"
72 .
/${TOOLNAME} /tmp
/ChangeLog-all
-e -t .
/kps_web
/kps_result
/all_whole_country.html
73 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/all_whole_country.html
"./index.php"
74 .
/${TOOLNAME} /tmp
/ChangeLog-all
-I -x .
/kps_web
/kps_result
/all_dir.html
75 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/all_dir.html
"./index.php"
76 .
/${TOOLNAME} /tmp
/ChangeLog-all
-i .
/kps_web
/kps_result
/all_dir_country.html
77 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/all_dir_country.html
"./index.php"
78 .
/${TOOLNAME} /tmp
/ChangeLog-all
-e -x .
/kps_web
/kps_result
/all_whole_line.html
-L
79 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/all_whole_line.html
"./index.php"
80 .
/${TOOLNAME} /tmp
/ChangeLog-all
-e -t .
/kps_web
/kps_result
/all_whole_line_country.html
-L
81 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/all_whole_line_country.html
"./index.php"
82 .
/${TOOLNAME} /tmp
/ChangeLog-all-sof
-O sof
-e -x .
/kps_web
/kps_result
/all_sof.html
83 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/all_sof.html
"./index.php"
84 .
/${TOOLNAME} /tmp
/ChangeLog-all-report
-O report
-e -x .
/kps_web
/kps_result
/all_report.html
85 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/all_report.html
"./index.php"
86 .
/${TOOLNAME} /tmp
/ChangeLog-all-review
-O review
-e -x .
/kps_web
/kps_result
/all_review.html
87 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/all_review.html
"./index.php"
88 .
/${TOOLNAME} /tmp
/ChangeLog-all-test
-O test -e -x .
/kps_web
/kps_result
/all_test.html
89 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/all_test.html
"./index.php"
90 .
/${TOOLNAME} /tmp
/ChangeLog-all-ack
-O ack
-e -x .
/kps_web
/kps_result
/all_ack.html
91 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/all_ack.html
"./index.php"
93 .
/${TOOLNAME} /tmp
/ChangeLog-all
-M 0 -e |
tee .
/kps_web
/kps_result
/all_petop.html
94 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/all_petop.html
"./index.php"
95 .
/${TOOLNAME} /tmp
/ChangeLog-all
-M 0 -L -e |
tee .
/kps_web
/kps_result
/all_petop_line.html
96 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/all_petop_line.html
"./index.php"
97 .
/${TOOLNAME} /tmp
/ChangeLog-all-sof
-O sof
-M 0 -e |
tee .
/kps_web
/kps_result
/all_petop_sof.html
98 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/all_petop_sof.html
"./index.php"
99 .
/${TOOLNAME} /tmp
/ChangeLog-all-report
-O report
-M 0 -e |
tee .
/kps_web
/kps_result
/all_petop_report.html
100 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/all_petop_report.html
"./index.php"
101 .
/${TOOLNAME} /tmp
/ChangeLog-all-review
-O review
-M 0 -e |
tee .
/kps_web
/kps_result
/all_petop_review.html
102 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/all_petop_review.html
"./index.php"
103 .
/${TOOLNAME} /tmp
/ChangeLog-all-test
-O test -M 0 -e |
tee .
/kps_web
/kps_result
/all_petop_test.html
104 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/all_petop_test.html
"./index.php"
105 .
/${TOOLNAME} /tmp
/ChangeLog-all-ack
-O ack
-M 0 -e |
tee .
/kps_web
/kps_result
/all_petop_ack.html
106 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/all_petop_ack.html
"./index.php"
108 .
/${TOOLNAME} /tmp
/ChangeLog-all
-l 2 |
tee .
/kps_web
/kps_result
/all_lt.html
109 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/all_lt.html
"./index.php"
111 #for first time committer function
112 mkdir .
/kps_web
/kps_result
/tmp
115 for loop
in $versions
117 .
/${TOOLNAME} /tmp/ChangeLog-${loop} -e -x ./kps_web/kps_result/${loop}_whole.html
118 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/${loop}_whole.html
"./index.php"
119 .
/${TOOLNAME} /tmp/ChangeLog-${loop} -e -t ./kps_web/kps_result/${loop}_whole_country.html
120 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/${loop}_whole_country.html
"./index.php"
121 .
/${TOOLNAME} /tmp/ChangeLog-${loop} -I -x ./kps_web/kps_result/${loop}_dir.html
122 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/${loop}_dir.html
"./index.php"
123 .
/${TOOLNAME} /tmp/ChangeLog-${loop} -i ./kps_web/kps_result/${loop}_dir_country.html
124 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/${loop}_dir_country.html
"./index.php"
125 .
/${TOOLNAME} /tmp/ChangeLog-${loop} -e -x ./kps_web/kps_result/${loop}_whole_line.html
-L
126 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/${loop}_whole_line.html
"./index.php"
127 .
/${TOOLNAME} /tmp/ChangeLog-${loop} -e -t ./kps_web/kps_result/${loop}_whole_line_country.html
-L
128 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/${loop}_whole_line_country.html
"./index.php"
129 .
/${TOOLNAME} /tmp/ChangeLog-${loop}-sof -O sof -e -x ./kps_web/kps_result/${loop}_sof.html
130 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/${loop}_sof.html
"./index.php"
131 .
/${TOOLNAME} /tmp/ChangeLog-${loop}-report -O report -e -x ./kps_web/kps_result/${loop}_report.html
132 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/${loop}_report.html
"./index.php"
133 .
/${TOOLNAME} /tmp/ChangeLog-${loop}-review -O review -e -x ./kps_web/kps_result/${loop}_review.html
134 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/${loop}_review.html
"./index.php"
135 .
/${TOOLNAME} /tmp/ChangeLog-${loop}-test -O test -e -x ./kps_web/kps_result/${loop}_test.html
136 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/${loop}_test.html
"./index.php"
137 .
/${TOOLNAME} /tmp/ChangeLog-${loop}-ack -O ack -e -x ./kps_web/kps_result/${loop}_ack.html
138 .
/kps_web
/back_home.sh
-h .
/kps_web
/kps_result
/${loop}_ack.html
"./index.php"
139 .
/${TOOLNAME} /tmp/ChangeLog-${loop} -M 0 -e |tee ./kps_web/kps_result/${loop}_petop.html
140 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/${loop}_petop.html
"./index.php"
141 .
/${TOOLNAME} /tmp/ChangeLog-${loop} -M 0 -L -e |tee ./kps_web/kps_result/${loop}_petop_line.html
142 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/${loop}_petop_line.html
"./index.php"
143 .
/${TOOLNAME} /tmp/ChangeLog-${loop}-sof -O sof -M 0 -e |tee ./kps_web/kps_result/${loop}_petop_sof.html
144 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/${loop}_petop_sof.html
"./index.php"
145 .
/${TOOLNAME} /tmp/ChangeLog-${loop}-report -O report -M 0 -e |tee ./kps_web/kps_result/${loop}_petop_report.html
146 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/${loop}_petop_report.html
"./index.php"
147 .
/${TOOLNAME} /tmp/ChangeLog-${loop}-review -O review -M 0 -e |tee ./kps_web/kps_result/${loop}_petop_review.html
148 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/${loop}_petop_review.html
"./index.php"
149 .
/${TOOLNAME} /tmp/ChangeLog-${loop}-test -O test -M 0 -e |tee ./kps_web/kps_result/${loop}_petop_test.html
150 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/${loop}_petop_test.html
"./index.php"
151 .
/${TOOLNAME} /tmp/ChangeLog-${loop}-ack -O ack -M 0 -e |tee ./kps_web/kps_result/${loop}_petop_ack.html
152 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/${loop}_petop_ack.html
"./index.php"
153 .
/${TOOLNAME} /tmp/ChangeLog-${loop} -l 2 |tee ./kps_web/kps_result/${loop}_lt.html
154 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/${loop}_lt.html
"./index.php"
155 .
/${TOOLNAME} /tmp/ChangeLog-${loop} -M 0 -e |tee ./kps_web/kps_result/tmp/${loop}_per.tmp
156 .
/${TOOLNAME} /tmp/ChangeLog-${loop} -s ./kps_web/kps_result/${loop}.sql -r ${loop}
159 for loop
in $versions
161 ftc
=`./kps_web/first-time.py -v ${loop} -d ./kps_web/kps_result/tmp/ | wc -l`
162 echo "In this release, we have $ftc people who first time contribute to kernel since 2.6.12-rc2." >.
/kps_web
/kps_result
/${loop}_ftc.html
163 echo "" >>.
/kps_web
/kps_result
/${loop}_ftc.html
164 .
/kps_web
/first-time.py
-v ${loop} -d .
/kps_web
/kps_result
/tmp
/ |
tee -a .
/kps_web
/kps_result
/${loop}_ftc.html
165 .
/kps_web
/back_home.sh
-t .
/kps_web
/kps_result
/${loop}_ftc.html
"./index.php"
168 rm .
/kps_web
/kps_result
/tmp
-rf
171 tar zcvf kps_result.tgz kps_result
/ >/tmp
/kpsdebug
2>&1