File: insertlib

package info (click to toggle)
sprng 2.0a-8
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 3,080 kB
  • ctags: 2,062
  • sloc: ansic: 30,350; fortran: 1,618; makefile: 573; cpp: 58; sh: 5
file content (22 lines) | stat: -rwxr-xr-x 234 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if [ -f $5 ]
then

if [ -f $2 ]
then
  s=`grep -c "$1: $3" $2`
else
  cat .insertlib > $2
  s=`grep -c "$1: $3" $2`
fi

s=`grep -c "$1: $3" $2`

if [ $s = "0" ]
then
  echo echo >> $2
  echo echo $1: $3 >> $2
  echo ./$4 >> $2
fi


fi