/FreeBSD/mac_settime/trunk/bin/update_src.sh |
---|
0,0 → 1,17 |
#!/bin/sh |
# |
# copy our version of files to system |
# |
# 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 |
# |
BIN_DIR=`dirname $0` |
BASE_DIR="${BIN_DIR}/.." |
cp ${BASE_DIR}/patched/kern/* /usr/src/sys/kern |
cp ${BASE_DIR}/patched/ntp/ntpd.c /usr/src/contrib/ntp/ntpd/ntpd.c |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
/FreeBSD/mac_settime/trunk/bin/copy_orig.sh |
---|
0,0 → 1,26 |
#!/bin/sh |
# |
# 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 |
for f in ${PATCHED_FILES_KERN} ; do |
cp "${SRCDIR}/$f" "${SRCDIR}/$f.orig" |
done |
for f in ${PATCHED_FILES_NTP} ; do |
cp "${SRCDIR}/$f" "${SRCDIR}/$f.orig" |
done |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
/FreeBSD/mac_settime/trunk/bin/clear_src.sh |
---|
0,0 → 1,26 |
#!/bin/sh |
# |
# delete our patches from /usr/src |
# to prepare for system update |
# |
# 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 |
for f in ${PATCHED_FILES_KERN} ; do |
rm "${SRCDIR}/$f" "${SRCDIR}/$f.orig" |
done |
for f in ${PATCHED_FILES_NTP} ; do |
rm "${SRCDIR}/$f" "${SRCDIR}/$f.orig" |
done |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
/FreeBSD/mac_settime/trunk/bin/get_diff.sh |
---|
0,0 → 1,21 |
#!/bin/sh |
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` |
OUTDIR="${BIN_DIR}/../output" |
SRCDIR=/usr/src |
mkdir -p ${OUTDIR} |
rm -f ${OUTDIR}/kern_settime.patch |
for f in ${PATCHED_FILES_KERN} ; do |
(cd ${SRCDIR}; diff -u $f.orig $f) >> ${OUTDIR}/kern_settime.patch |
done |
rm -f ${OUTDIR}/ntp.patch |
for f in ${PATCHED_FILES_NTP} ; do |
(cd ${SRCDIR}; diff -u $f.orig $f) >> ${OUTDIR}/ntp.patch |
done |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |