File: Iprms.setup

package info (click to toggle)
gnats 3.113-13
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,640 kB
  • ctags: 2,917
  • sloc: ansic: 25,624; tcl: 8,071; sh: 5,362; perl: 3,619; makefile: 3,164; yacc: 820; lisp: 742; sql: 280; sed: 181
file content (36 lines) | stat: -rwxr-xr-x 959 bytes parent folder | download | duplicates (12)
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
#!/bin/sh

# set up

PATH=.:/bin:/usr/bin:/usr/unsupported/bin:/usr/unsupported/informix/bin
INFORMIXDIR=/usr/unsupported/informix
DBPATH=/users/db/infx
DBTEMP=/tmp

export PATH
export INFORMIXDIR
export DBPATH
export DBTEMP

BUGDIR=/users/db/reports
INFX=/usr/unsupported/informix/bin

#---------------------------------------------------------------
# query the GNATS db for derivative data
#---------------------------------------------------------------

query_pr -sql > $BUGDIR/gnats`date +%y%m%d`
cp $BUGDIR/gnats`date +%y%m%d` $BUGDIR/gnats.curr

#---------------------------------------------------------------
# load into informix database
#---------------------------------------------------------------

$INFX/isql engdb loadGNATS.sql

#---------------------------------------------------------------
# calculate age of non-closed bugs and update db
#---------------------------------------------------------------

cd $DBPATH
$INFX/fglgo calc_age