File: Iprms.setup

package info (click to toggle)
gnats 4.1.0-3
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 5,912 kB
  • sloc: ansic: 22,478; sh: 9,854; tcl: 8,156; lisp: 2,254; perl: 1,740; yacc: 1,632; makefile: 1,207; lex: 449; sql: 280; sed: 22
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