s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

patch-for-solaris (489B)


      1 #!/usr/xpg4/bin/sh
      2 
      3 patchit () {
      4   echo '#!/usr/xpg4/bin/sh' > $1.tmp
      5   tail -n +2 $1 >> $1.tmp
      6   mv -f $1.tmp $1
      7   chmod 755 $1
      8 }
      9 
     10 # Solaris doesn't understand POSIX.1-2008 either.
     11 sed -e 's/XOPEN_SOURCE=700/XOPEN_SOURCE=600/' < configure > configure.tmp
     12 mv -f configure.tmp configure
     13 
     14 patchit ./configure
     15 patchit ./tools/install.sh
     16 patchit ./tools/gen-deps.sh
     17 
     18 echo 'SHELL := /usr/xpg4/bin/sh' > Makefile.tmp
     19 echo >> Makefile.tmp
     20 cat Makefile >> Makefile.tmp
     21 mv -f Makefile.tmp Makefile