Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
34ed4e98
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
34ed4e98
编写于
11月 12, 2010
作者:
M
Matthias Bolte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Generate HACKING from docs/hacking.html.in
上级
d39620e3
变更
6
展开全部
显示空白变更内容
内联
并排
Showing
6 changed file
with
583 addition
and
257 deletion
+583
-257
HACKING
HACKING
+343
-257
Makefile.am
Makefile.am
+7
-0
cfg.mk
cfg.mk
+3
-0
docs/hacking1.xsl
docs/hacking1.xsl
+28
-0
docs/hacking2.xsl
docs/hacking2.xsl
+146
-0
docs/wrapstring.xsl
docs/wrapstring.xsl
+56
-0
未找到文件。
HACKING
浏览文件 @
34ed4e98
此差异已折叠。
点击以展开。
Makefile.am
浏览文件 @
34ed4e98
...
...
@@ -56,6 +56,13 @@ NEWS: $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html.in
| perl
-pe
's/[ \t]+$$//'
\
>
$@
-t
&&
mv
$@
-t
$@
;
fi
)
;
$(top_srcdir)/HACKING
:
$(top_srcdir)/docs/hacking1.xsl $(top_srcdir)/docs/hacking2.xsl
\
$(top_srcdir)/docs/wrapstring.xsl $(top_srcdir)/docs/hacking.html.in
-
@
(
if
[
-x
$(XSLTPROC)
]
;
then
\
$(XSLTPROC)
--nonet
$(top_srcdir)
/docs/hacking1.xsl
$(top_srcdir)
/docs/hacking.html.in |
\
$(XSLTPROC)
--nonet
$(top_srcdir)
/docs/hacking2.xsl -
\
| perl
-0777
-pe
's/\n\n+$$/\n/'
\
>
$@
-t
&&
mv
$@
-t
$@
;
fi
)
;
rpm
:
clean
@
(
unset
CDPATH
;
$(MAKE)
dist
&&
rpmbuild
-ta
$(distdir)
.tar.gz
)
...
...
cfg.mk
浏览文件 @
34ed4e98
...
...
@@ -486,3 +486,6 @@ _autogen:
# Exempt @...@ uses of these symbols.
_makefile_at_at_check_exceptions
=
' && !/(SCHEMA|SYSCONF)DIR/'
# regenerate HACKING as part of the syntax-check
syntax-check
:
$(top_srcdir)/HACKING
docs/hacking1.xsl
0 → 100644
浏览文件 @
34ed4e98
<?xml version="1.0"?>
<xsl:stylesheet
version=
"1.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
<xsl:output
method=
"xml"
encoding=
"UTF-8"
indent=
"no"
/>
<xsl:template
match=
"/"
>
<xsl:apply-templates/>
</xsl:template>
<xsl:template
match=
"@*|node()"
>
<xsl:copy>
<xsl:apply-templates
select=
"@*|node()"
/>
</xsl:copy>
</xsl:template>
<!-- resolve b/i/code tags in a first pass, because they interfere with line
wrapping in the second pass -->
<xsl:template
match=
"b"
>
*
<xsl:apply-templates/>
*
</xsl:template>
<xsl:template
match=
"i"
>
'
<xsl:apply-templates/>
'
</xsl:template>
<xsl:template
match=
"code"
>
"
<xsl:apply-templates/>
"
</xsl:template>
</xsl:stylesheet>
docs/hacking2.xsl
0 → 100644
浏览文件 @
34ed4e98
<?xml version="1.0"?>
<xsl:stylesheet
version=
"1.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
<xsl:import
href=
"wrapstring.xsl"
/>
<xsl:output
method=
"text"
encoding=
"UTF-8"
indent=
"no"
/>
<xsl:strip-space
elements=
"*"
/>
<xsl:variable
name=
"newline"
>
<xsl:text>
</xsl:text>
</xsl:variable>
<xsl:template
match=
"/"
>
<xsl:text>
-*- buffer-read-only: t -*- vi: set ro:
DO NOT EDIT THIS FILE! IT IS GENERATED AUTOMATICALLY!
</xsl:text>
<xsl:apply-templates/>
</xsl:template>
<!-- title -->
<xsl:template
match=
"h1"
>
<xsl:text>
</xsl:text>
<xsl:value-of
select=
"normalize-space(.)"
/>
<xsl:text>
</xsl:text>
======================
</xsl:template>
<!-- output the current text node underlined -->
<xsl:template
name=
"underline"
>
<xsl:param
name=
"text"
select=
"normalize-space(.)"
/>
<xsl:param
name=
"text-length"
select=
"string-length($text)"
/>
<xsl:param
name=
"char"
select=
"'='"
/>
<xsl:param
name=
"line"
select=
"$char"
/>
<xsl:choose>
<xsl:when
test=
"$text-length > 1"
>
<xsl:call-template
name=
"underline"
>
<xsl:with-param
name=
"text"
select=
"$text"
/>
<xsl:with-param
name=
"text-length"
select=
"$text-length - 1"
/>
<xsl:with-param
name=
"char"
select=
"$char"
/>
<xsl:with-param
name=
"line"
select=
"concat($line,$char)"
/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select=
"$text"
/>
<xsl:value-of
select=
"$newline"
/>
<xsl:value-of
select=
"$line"
/>
<xsl:value-of
select=
"$newline"
/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template
match=
"h2"
>
<xsl:value-of
select=
"$newline"
/>
<xsl:call-template
name=
"underline"
/>
</xsl:template>
<xsl:template
match=
"h3"
>
<xsl:call-template
name=
"underline"
>
<xsl:with-param
name=
"char"
select=
"'-'"
/>
</xsl:call-template>
</xsl:template>
<!-- output text line wrapped at 80 chars -->
<xsl:template
match=
"text()"
>
<xsl:call-template
name=
"wrap-string"
>
<xsl:with-param
name=
"str"
select=
"normalize-space(.)"
/>
<xsl:with-param
name=
"wrap-col"
select=
"80"
/>
<xsl:with-param
name=
"break-mark"
select=
"$newline"
/>
</xsl:call-template>
</xsl:template>
<xsl:template
match=
"ol|ul|p"
>
<xsl:apply-templates/><xsl:value-of
select=
"$newline"
/><xsl:value-of
select=
"$newline"
/>
</xsl:template>
<xsl:template
match=
"ol/li"
>
<xsl:choose>
<xsl:when
test=
".//node()[position()=last()]/self::pre"
>
(
<xsl:value-of
select=
"position()"
/>
)
<xsl:apply-templates/>
</xsl:when>
<!-- only append two newlines when the last element isn't a pre element -->
<xsl:otherwise>
(
<xsl:value-of
select=
"position()"
/>
)
<xsl:apply-templates/><xsl:value-of
select=
"$newline"
/><xsl:value-of
select=
"$newline"
/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template
match=
"ul/li"
>
-
<xsl:apply-templates/><xsl:value-of
select=
"$newline"
/><xsl:value-of
select=
"$newline"
/>
</xsl:template>
<xsl:template
match=
"li/ul/li"
>
--
<xsl:apply-templates/><xsl:value-of
select=
"$newline"
/><xsl:value-of
select=
"$newline"
/>
</xsl:template>
<!-- add newline before nested <ul> -->
<xsl:template
match=
"li/ul"
><xsl:value-of
select=
"$newline"
/><xsl:value-of
select=
"$newline"
/><xsl:apply-templates/>
</xsl:template>
<xsl:template
match=
"pre"
>
<xsl:choose>
<xsl:when
test=
"starts-with(.,'
')"
><xsl:value-of
select=
"substring(.,2)"
/><xsl:value-of
select=
"$newline"
/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select=
"."
/><xsl:value-of
select=
"$newline"
/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template
match=
"a"
>
<xsl:value-of
select=
"$newline"
/><xsl:value-of
select=
"$newline"
/>
<xsl:text>
</xsl:text><xsl:apply-templates/>
<xsl:value-of
select=
"$newline"
/>
<xsl:text>
</xsl:text><xsl:value-of
select=
"@href"
/>
</xsl:template>
</xsl:stylesheet>
docs/wrapstring.xsl
0 → 100644
浏览文件 @
34ed4e98
<?xml version="1.0"?>
<xsl:stylesheet
version=
"1.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
<!-- based on http://plasmasturm.org/log/xslwordwrap/ -->
<!-- Copyright 2010 Aristotle Pagaltzis; under the MIT licence -->
<!-- http://www.opensource.org/licenses/mit-license.php -->
<xsl:template
name=
"wrap-string"
>
<xsl:param
name=
"str"
/>
<xsl:param
name=
"wrap-col"
/>
<xsl:param
name=
"break-mark"
/>
<xsl:param
name=
"pos"
select=
"0"
/>
<xsl:choose>
<xsl:when
test=
"contains( $str, ' ' )"
>
<xsl:variable
name=
"first-word"
select=
"substring-before( $str, ' ' )"
/>
<xsl:variable
name=
"pos-now"
select=
"$pos + 1 + string-length( $first-word )"
/>
<xsl:choose>
<xsl:when
test=
"$pos > 0 and $pos-now >= $wrap-col"
>
<xsl:copy-of
select=
"$break-mark"
/>
<xsl:call-template
name=
"wrap-string"
>
<xsl:with-param
name=
"str"
select=
"$str"
/>
<xsl:with-param
name=
"wrap-col"
select=
"$wrap-col"
/>
<xsl:with-param
name=
"break-mark"
select=
"$break-mark"
/>
<xsl:with-param
name=
"pos"
select=
"0"
/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:if
test=
"$pos > 0"
>
<xsl:text>
</xsl:text>
</xsl:if>
<xsl:value-of
select=
"$first-word"
/>
<xsl:call-template
name=
"wrap-string"
>
<xsl:with-param
name=
"str"
select=
"substring-after( $str, ' ' )"
/>
<xsl:with-param
name=
"wrap-col"
select=
"$wrap-col"
/>
<xsl:with-param
name=
"break-mark"
select=
"$break-mark"
/>
<xsl:with-param
name=
"pos"
select=
"$pos-now"
/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when
test=
"$pos + string-length( $str ) >= $wrap-col"
>
<xsl:copy-of
select=
"$break-mark"
/>
</xsl:when>
<xsl:otherwise>
<xsl:if
test=
"$pos > 0"
>
<xsl:text>
</xsl:text>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of
select=
"$str"
/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录