File: insertmenu

package info (click to toggle)
sprng 2.0a-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,308 kB
  • sloc: ansic: 30,353; fortran: 1,618; makefile: 575; cpp: 58; sh: 5
file content (17 lines) | stat: -rwxr-xr-x 359 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if ! [ -f $6 ]
then
  cat $5 > $6 
fi

s=`grep -c "$2     --- $3" $6`

if [ $s = "0" ]
then
# echo -e "        $1   $2     --- $3 $4" >> $6
# on some systems use echo without '-e'
# uncomment the next line
# echo "        $1   $2     --- $3 $4" >> $6
# Debian bug report #818762: use printf to avoid bashism
  printf "        $1   $2     --- $3 $4" >> $6

fi