Debian Codegraph @

tools/testing/reporting/scripts/mkUpdateInfo

raw
1 #!/bin/bash
2
3 # Licensed to the Apache Software Foundation (ASF) under one or more
4 # contributor license agreements. See the NOTICE file distributed with
5 # this work for additional information regarding copyright ownership.
6 # The ASF licenses this file to you under the Apache License, Version 2.0
7 # (the "License"); you may not use this file except in compliance with
8 # the License. You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 if [ "$1" = "" -o "$2" = "" ]
19 then
20 echo "Usage: $0 oldrevision/$1 revision/$2"
21 exit
22 fi
23 OLDREVISION=$1
24 REVISION=$2
25 #
26
27 # You should NOT need to modify anything below.
28 # NB: derby_source must be defined.
29 #---------------------------------------------
30 TOOLDIR="${DERBYDIR}/${BRANCH_DIR}/tools/testing/reporting/scripts"
31 . ${TOOLDIR}/env
32
33 echo "cd ${DERBYDIR}"
34 cd ${DERBYDIR}
35
36 UPDATEINFO="UpdateInfo"
37 mkdir -p ${DERBYDIR}/testing/${UPDATEINFO}
38 echo "Changes from ${OLDREVISION} to ${REVISION}:" > ${DERBYDIR}/testing/${UPDATEINFO}/${REVISION}.txt
39 echo "${TOOLDIR}/svnLogRevs.new ${OLDREVISION} ${REVISION} >> ${DERBYDIR}/testing/${UPDATEINFO}/${REVISION}.txt"
40 ${TOOLDIR}/svnLogRevs.new ${OLDREVISION} ${REVISION} >> ${DERBYDIR}/testing/${UPDATEINFO}/${REVISION}.txt
41 echo "" >> ${DERBYDIR}/testing/${UPDATEINFO}/${REVISION}.txt
42 grep -v "sun.com" ${UPDATELOGDIR}/${REVISION}/update.out >> ${DERBYDIR}/testing/${UPDATEINFO}/${REVISION}.txt
43 chmod go+r ${DERBYDIR}/testing/${UPDATEINFO}/${REVISION}.txt
44
45 SRC="${DERBYDIR}/testing/${UPDATEINFO}/${REVISION}.txt"
46 DST="${PUBLISHDIR}/${UPDATEINFO}/${REVISION}.txt"
47 echo "**** OBS! ${SCPUT} ${SRC} ${PUBLISHUSER}@${PUBLISHSITE}:${DST}"
48 ### ${SCPUT} ${SRC} ${PUBLISHUSER}@${PUBLISHSITE}:${DST}