Co s diff.
robert na v0jta.net
robert na v0jta.net
Středa Červen 25 08:58:35 CEST 2003
> Potřebuju poradit asi v úplné banlitě.
> Chci opatchovat sambu 2.2.7a na 2.2.7.b
>
> Stáhnul jsem si soubory
> patch-2.2.7a-2.2.7b.diff.asc
> patch-2.2.7a-2.2.7b.diff.gz
unzip patch-2.2.7a-2.2.7b.diff.gz
cd /nekde/zdrojaky/samby
patch -p1 < patch-2.2.7a-2.2.7b.diff
Co znamena -p0 je uvedeno zde ...
-pnum or --strip=num
Strip the smallest prefix containing num leading slashes from each
file name found in the patch file. A sequence of one or more adja-
cent slashes is counted as a single slash. This controls how file
names found in the patch file are treated, in case you keep your
files in a different directory than the person who sent out the
patch. For example, supposing the file name in the patch file was
/u/howard/src/blurfl/blurfl.c
setting -p0 gives the entire file name unmodified, -p1 gives
u/howard/src/blurfl/blurfl.c
without the leading slash, -p4 gives
blurfl/blurfl.c
and not specifying -p at all just gives you blurfl.c. Whatever you
end up with is looked for either in the current directory, or the
directory specified by the -d option.
--
.''`.
: :' : Robert Vojta robert na v0jta.net, http://www.v0jta.net
`. `'
`- Debian GNU/Linux
Další informace o konferenci Linux