File: fpermissive

package info (click to toggle)
peruser 4b33-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,952 kB
  • ctags: 1,064
  • sloc: cpp: 22,367; perl: 2,733; makefile: 345; sh: 335
file content (14 lines) | stat: -rw-r--r-- 230 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# Just a script to check whether a g++ which needs -fpermissive is used.

gcc_ver=`g++ --version`

if echo $gcc_ver | grep -q egcs ; then
 exit 1
fi

if dpkg --compare-versions $gcc_ver ge 2.95 ; then
 exit 0
fi

exit 1