Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite9d5a4d

Browse files
author
Clement Champetier
committed
Sconscript: print warning if can't find version from git
1 parent8cbd7a0 commite9d5a4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/SConscript

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Import( "envPy" )
77
Import("installPrefix" )
88
Import("resampleLibraryName" )
99

10+
# Set a default version
11+
avTranscoderVersion="0.0.1"
12+
1013
try:
1114
importgit
1215
# Get last tag of git repository
@@ -18,8 +21,7 @@ try:
1821
else:
1922
raise
2023
exceptException:
21-
# Set a default version
22-
avTranscoderVersion="0.0.1"
24+
print"Warning: Can't access the last tag of git repository ; default version will be '0.0.1'."
2325

2426
env.Append(
2527
SHLIBVERSION=avTranscoderVersion

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp