#!/usr/local/bin/bash # # schg-flags Makefile edit script # # explanation: # when a freebsd jailed system is installed, you may have to update it from within the jail # in doing this, you will run into schg problems on files (output of ls -o shows file flags) # # to fix this, this script will take out the -fschg flags from makefiles, thus allowing you to # run "make world" or "make installworld" and have it actually install without problems. # # Eric Thern, March 2002 # # Updated September 2002 -- added more files to makefile-fschg # should work with FreeBSD-RELEASE 4.6.2 # for i in `cat makefiles-fschg`; do cd /usr/src && `sed -e "s/-fschg//" /usr/src/$i > /usr/src/$i.rplzz; cat /usr/src/$i.rplzz > /usr/src/$i && rm /usr/src/$i.rplzz`; done