Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1119 → Rev 1120

/FreeBSD/mac_settime/trunk/bin/copy_orig.sh
4,23 → 4,12
# make copy of all standard files in /usr/src
# which we want to work on to get diffs later
#
# to update the system run as root
# ./clear_src.sh && cvsup src_update && ./copy_orig.sh && ./update_src.sh
#
# then run ./get_diffs.sh as user and examine the diffs
#
 
PATCHED_FILES_KERN="sys/kern/kern_time.c sys/kern/kern_ntptime.c"
PATCHED_FILES_NTP="contrib/ntp/ntpd/ntpd.c"
 
BIN_DIR=`dirname $0`
SRCDIR=/usr/src
SAVED_DIR="${BIN_DIR}/../origins"
 
for f in ${PATCHED_FILES_KERN} ; do
cp "${SRCDIR}/$f" "${SRCDIR}/$f.orig"
done
cp "${SRCDIR}/sys/kern/kern_time.c" "${SAVED_DIR}/kern"
cp "${SRCDIR}/sys/kern/kern_ntptime.c" "${SAVED_DIR}/kern"
cp "${SRCDIR}/contrib/ntp/ntpd/ntpd.c" "${SAVED_DIR}/ntp"
 
for f in ${PATCHED_FILES_NTP} ; do
cp "${SRCDIR}/$f" "${SRCDIR}/$f.orig"
done