Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
8e76877a
提交
8e76877a
authored
4月 02, 2010
作者:
Michael Jerris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update makefile and version generation to work with git working copy too
上级
0b10cd7c
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
42 行增加
和
21 行删除
+42
-21
Makefile.am
Makefile.am
+38
-18
configure.in
configure.in
+3
-3
tagscript.sh
scripts/tagscript.sh
+1
-0
没有找到文件。
Makefile.am
浏览文件 @
8e76877a
...
...
@@ -349,7 +349,21 @@ src/include/switch_version.h: src/include/switch_version.h.in .version $(libfree
cat
src/include/switch_version.h.in
>
src/include/switch_version.h
;
\
touch
.version
;
\
else
\
version
=
`
svnversion
.
-n
||
echo
hacked
`
;
\
if
[
-d
.git
]
;
then
\
version
=
`
git log
--format
=
"%h %ci"
-1
HEAD |
head
-1
||
echo
hacked
`
;
\
if
[
"x
$$
version"
==
"xhacked"
]
;
then
\
version
=
"hacked-
`
date
-u
+%Y%m%dT%H%M%SZ
`
"
;
\
else
\
version
=
"git-
$$
version"
;
\
fi
;
\
else
\
version
=
`
svnversion
.
-n
||
echo
hacked
`
;
\
if
[
"x
$$
version"
==
"xhacked"
]
;
then
\
version
=
"hacked-
`
date
-u
+%Y%m%dT%H%M%SZ
`
"
;
\
else
\
version
=
"svn-
$$
version"
;
\
fi
;
\
fi
;
\
oldversion
=
`
cat
.version 2>/dev/null
||
echo
"0"
`
;
\
if
test
"
$$
oldversion"
!=
"
$$
version"
||
test
$$
force
=
1
;
then
\
cat
src/include/switch_version.h.in |
sed
"s/@SWITCH_VERSION_REVISION@/
$$
version/g"
>
src/include/switch_version.h
;
\
...
...
@@ -437,23 +451,29 @@ install-data-local:
test
-d
$(DESTDIR)$(sysconfdir)
||
$(MAKE)
samples-conf
test
-d
$(DESTDIR)$(htdocsdir)
||
$(MAKE)
samples-htdocs
is-s
vn
:
@
if
[
!
-d
.svn
]
;
then
\
is-s
cm
:
@
if
[
!
-d
.svn
-a
!
-d
.git
]
;
then
\
echo
;
echo
;
\
echo
"**************************************************************************************************"
;
\
echo
"You can not update a release tarball or without a svn working copy, please checkout fresh from svn"
;
\
echo
"**************************************************************************************************"
;
\
echo
"*****************************************************************************************************"
;
\
echo
"You can not update a release tarball or without a git or svn working copy please clone our git tree: "
;
\
echo
"git clone git://git.freeswitch.org/freeswitch.git "
;
\
echo
"or check out our read only svn mirror: "
;
\
echo
"svn checkout http://svn.freeswitch.org/svn/freeswitch/trunk "
;
\
echo
"*****************************************************************************************************"
;
\
echo
;
echo
;
\
exit
1
;
\
fi
update
:
is-s
vn
update
:
is-s
cm
@
if
test
-d
.svn
;
then
\
test
!
-f
.version
||
rm
-f
.version
;
\
echo
Updating...
;
\
svn update
;
\
elif
test
-d
.git
;
then
\
echo
"Pulling updates..."
;
\
git pull
;
\
else
\
echo
"This source directory is not a
n
svn working copy"
;
\
echo
"This source directory is not a
git tree or
svn working copy"
;
\
fi
.nodepends
:
...
...
@@ -483,18 +503,18 @@ core_install: install_core
everything
:
install
up
:
is-s
vn
clean
svn
update
up
:
is-s
cm
clean
$(MAKE)
update
$(MAKE)
-j
core
$(MAKE)
-j
modules
$(MAKE)
install
sync
:
is-s
vn
svn
update
sync
:
is-s
cm
$(MAKE)
update
$(MAKE)
install
speedy-sync
:
is-s
vn
svn
update
speedy-sync
:
is-s
cm
$(MAKE)
update
$(MAKE)
-j
install
libs/openzap/Makefile
:
...
...
@@ -570,15 +590,15 @@ cluecon:
@
echo
@
echo
http://www.cluecon.com
@
sleep
5
current
:
cluecon
is-svn update-clean
svn
update
current
:
cluecon
update-clean is-scm
$(MAKE)
update
$(MAKE)
all
$(MAKE)
install
installall
:
current
speedy-current
:
is-svn update-clean
svn
update
speedy-current
:
update-clean is-scm
$(MAKE)
update
$(MAKE)
speedy-sure
$(MAKE)
install
...
...
configure.in
浏览文件 @
8e76877a
...
...
@@ -3,11 +3,11 @@
# Must change all of the below together
# For a release, set revision for that tagged release as well and uncomment
AC_INIT([freeswitch], [1.0.
trunk
], BUG-REPORT-ADDRESS)
AC_INIT([freeswitch], [1.0.
head
], BUG-REPORT-ADDRESS)
AC_SUBST(SWITCH_VERSION_MAJOR, [1])
AC_SUBST(SWITCH_VERSION_MINOR, [0])
AC_SUBST(SWITCH_VERSION_MICRO, [
trunk
])
#AC_SUBST(SWITCH_VERSION_REVISION, [
svn-revision-here
])
AC_SUBST(SWITCH_VERSION_MICRO, [
head
])
#AC_SUBST(SWITCH_VERSION_REVISION, [])
AC_CONFIG_FILES([src/include/switch_version.h.in:src/include/switch_version.h.template])
AC_CONFIG_FILES([.version:.version.in])
...
...
scripts/tagscript.sh
浏览文件 @
8e76877a
...
...
@@ -35,6 +35,7 @@ fi
sed
-e
"s|
\(
AC_SUBST(SWITCH_VERSION_MAJOR,
\[\)
.*
\(\]
)
\)
|
\1
$major
\2
|"
\
-e
"s|
\(
AC_SUBST(SWITCH_VERSION_MINOR,
\[\)
.*
\(\]
)
\)
|
\1
$minor
\2
|"
\
-e
"s|
\(
AC_SUBST(SWITCH_VERSION_MICRO,
\[\)
.*
\(\]
)
\)
|
\1
$micro
\2
|"
\
-e
"s|
\(
AC_INIT(
\[
freeswitch
\]
,
\[\)
.*
\(\]
, BUG-REPORT-ADDRESS)
\)
|
\1
$major
.
$minor
.
$micro
\2
|"
\
-i
configure.in
if
[
-n
"
$rev
"
]
;
then
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论