system update question

Andrey N. Oktyabrski ano at bestmx.ru
Mon Jun 6 11:41:38 PDT 2011


On 06.06.11 19:16, Matthias Rampke wrote:
to switch to the stable branch

cd /usr/src && git checkout DragonFly_RELEASE_2_10

from that point on git pull in /usr/src or make src-update in /usr will
keep you up to date on the stable branch.
For more info, have a look at /usr/src/{README,UPDATING} and section 7
of the man pages, esp. build(7).
Thank you.

But why we have not the option for "make src-create"?
Something same as
--- Makefile.orig       2011-06-06 21:08:15 +0400
+++ Makefile    2011-06-06 22:36:13 +0400
@@ -4,9 +4,14 @@
 #
 # $DragonFly: src/etc/Makefile.usr,v 1.8 2008/09/03 10:38:55 hasso Exp $
+RELNUM != uname -r
+BRANCH ?= DragonFly_RELEASE_${RELNUM:S/-RELEASE//:S/./_/g}
+
 help all:
        @echo "HELP:"
        @echo ""
+       @echo "Current branch is: ${BRANCH}"
+       @echo ""
 .if exists(${.CURDIR}/pkgsrc/.git)
 .if exists(${.CURDIR}/pkgsrc/Makefile)
        @echo "    make pkgsrc-update       - update your pkgsrc repo 
from the net"
@@ -73,12 +78,12 @@
        cd ${.CURDIR}/src && \
                git remote add origin 
git://git.dragonflybsd.org/dragonfly.git
        cd ${.CURDIR}/src && git fetch origin
-       cd ${.CURDIR}/src && git branch master origin/master
-       cd ${.CURDIR}/src && git checkout master
+       cd ${.CURDIR}/src && git branch ${BRANCH} origin/${BRANCH}
+       cd ${.CURDIR}/src && git checkout ${BRANCH}
        cd ${.CURDIR}/src && git pull

 src-checkout:
-       cd ${.CURDIR}/src && git checkout master
+       cd ${.CURDIR}/src && git checkout ${BRANCH}
 src-update:
        cd ${.CURDIR}/src && git pull


And then
cd /usr && make src-create BRANCH=DragonFly_RELEASE_2_10
P.S. Disclaimer: I don't know the Git :-)





More information about the Users mailing list