cd /usr
make pkgsrc-update
%
-To download the DragonFly BSD cvs repository into /home/dcvs issue:
+To download the DragonFly BSD git repository into /usr/src, issue:
cd /usr
- make cvs-cvsup
+ make git-clone
-To download the latest DragonFly BSD release cvs repository, issue:
+To update the DragonFly BSD git repository in /usr/src, issue:
cd /usr
- make release-src-cvsup
-
-The following target will first synchronize /home/dcvs then issue an
-update into /usr/src.
-
- cd /usr
- make head-src-cvsup
+ make git-update
%
Getting the latest pkgsrc WIP tree in DragonFly BSD is fairly simple:
# Doing a make install builds /usr/share/examples
DIRS!= for i in *; do \
- if test -d $$i -a $$i != CVS -a \
- $$i != ipfilter -a $$i != smbfs; then \
+ if test -d $$i -a $$i != ipfilter -a $$i != smbfs; then \
echo $$i; \
fi; \
done
beforeinstall: etc-examples ${SHARED}
.for dir in ${DIRS}
-FILES!= find -L ${dir} \( -name CVS -prune \) -o -type f -print
+FILES!= find -L ${dir} -type f -print
.for file in ${FILES}
copies::
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${file} ${DDIR}/${file}
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14
CFDIR= cf
-CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( -name CVS -prune \) -o -type d -print)
-CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( -name CVS -prune \) -o -type f -print)
+CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} -type d -print)
+CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} -type f -print)
DDIR= ${DESTDIR}/usr/share/sendmail
f.write(patch)
f.close()
-def splitpatch(source, output = directory_save, quiet = False, tag = False):
+def splitpatch(source, output = directory_save, quiet = False):
"""
Split the patch in source into independent pieces
and call output on the result with the guessed filename
"""
diff_line = { " ": True, "+": True, "-": True, "@": True, "!": True, '*': True }
buf = []
- if tag:
- buf.append('$''DragonFly$\n')
filename = None
for line in source:
if not filename:
filename = None
buf = []
- if tag:
- buf.append('$''DragonFly$\n')
if filename:
output(filename, "".join(buf))
parser.add_option("-f", "--force", action="store_true", dest="force", help="overwrite existing patches")
parser.add_option("-s", "--suffix", type="string", dest="suffix", help="use SUFFIX instead of .patch for the created patches")
parser.add_option("-d", "--directory", type="string", dest="directory", help="create patches in DIRECTORY")
- parser.add_option("-t", "--tag", action="store_true", dest="tag", help="add DragonFly CVS tag")
(options, args) = parser.parse_args()
if len(args) > 1:
parser.error("incorrect number of arguments")
else:
source = sys.stdin
splitpatch(source, lambda filename, patch: directory_save(filename, patch, forceful = options.force,
- suffix = options.suffix, root = options.directory), quiet = options.quiet, tag = options.tag)
+ suffix = options.suffix, root = options.directory), quiet = options.quiet)
if __name__ == '__main__':
main()