summaryrefslogtreecommitdiff
path: root/patch-for-solaris
blob: 02f2e3cad90f1ab1149eb57adc5da39b33956699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/xpg4/bin/sh

patchit () {
  echo '#!/usr/xpg4/bin/sh' > $1.tmp
  tail -n +2 $1 >> $1.tmp
  mv -f $1.tmp $1
  chmod 755 $1
}

patchit ./configure
patchit ./tools/install.sh
patchit ./tools/gen-deps.sh

echo 'SHELL := /usr/xpg4/bin/sh' > Makefile.tmp
echo >> Makefile.tmp
cat Makefile >> Makefile.tmp
mv -f Makefile.tmp Makefile