No changes between revisions
/freebsd/mac_settime/trunk/bin/update_src.sh |
0,0 → 1,15 |
#!/bin/sh |
|
# |
# copy our version of files to system |
# |
# to update the system run as root |
# cvsup src_update && ( ./compare_after_update.sh | less ) && ./update_src.sh |
# |
|
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/compare_after_update.sh |
0,0 → 1,19 |
#!/bin/sh |
|
# |
# compare the saved original sources na dsources after update |
# |
|
BIN_DIR=`dirname $0` |
SRC_DIR=/usr/src |
SAVED_DIR="${BIN_DIR}/../origins" |
|
echo "================ sys/kern/kern_time.c ============================ " |
diff "${SAVED_DIR}/kern/kern_time.c" "${SRC_DIR}/sys/kern/kern_time.c" |
|
echo "================ sys/kern/kern_ntptime.c ========================= " |
diff "${SAVED_DIR}/kern/kern_ntptime.c" "${SRC_DIR}/sys/kern/kern_ntptime.c" |
|
echo "================ contrib/ntp/ntpd/ntpd.c ========================= " |
diff "${SAVED_DIR}/ntp/ntpd.c" "${SRC_DIR}/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,15 |
#!/bin/sh |
|
# |
# make copy of all standard files in /usr/src |
# which we want to work on to get diffs later |
# |
|
BIN_DIR=`dirname $0` |
SRCDIR=/usr/src |
SAVED_DIR="${BIN_DIR}/../origins" |
|
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" |
|
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
/freebsd/mac_settime/trunk/bin/show_man.sh |
0,0 → 1,9 |
#!/bin/sh |
|
# |
# show our man page |
# |
|
/usr/bin/tbl < `dirname $0`/../src/mac_settime.4 \ |
| /usr/bin/groff -S -Wall -mtty-char -man -Tascii | /usr/bin/col | less |
|
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 |