6 test x
"$TARGET_DIR" = x
"" && TARGET_DIR
="."
8 if [ -d "$TARGET_DIR/.hg" ]; then
9 # Under source control => get Mercurial info
12 if hash hg
&>/dev
/null
; then
20 if hash hg
&>/dev
/null
; then
21 hg identify
--branch "$1"
28 if hash hg
&>/dev
/null
; then
29 hg identify
--id "$1/wireless/shared_mbss_mac"
36 # Source tarball => mark as 'exported' + base version if exists
38 # get base version from 'revision' file if exists BEFORE we output (probaly to the same file)
39 BASE_REVISION
="$TARGET_DIR/revision_info"
41 if [ -f "${BASE_REVISION}" ]; then
42 BASE_INFO
=$
(cat "${BASE_REVISION}" |
awk '{ print $1; }')
43 BASE_FW_MBSS_API_INFO
=$
(cat "${BASE_REVISION}" |
awk '{ print $2; }')
51 if [ "$BASE_INFO" ]; then
59 if [ "$BASE_FW_MBSS_API_INFO" ]; then
60 echo "$BASE_FW_MBSS_API_INFO"
69 echo "$(get_revision "$1").$(get_branch "$1")"
74 test x
"${INFO_TYPE}" = x
"" && SHOW_BASE
=1 && SHOW_FW_MBSS_API
=1
75 test x
"${INFO_TYPE}" = x
"base" && SHOW_BASE
=1
76 test x
"${INFO_TYPE}" = x
"fw_mbss_api" && SHOW_FW_MBSS_API
=1
78 test x
"$SHOW_BASE" = x
"1" && INFO
="$INFO $(get_info "$TARGET_DIR")"
79 test x
"$SHOW_FW_MBSS_API" = x
"1" && INFO
="$INFO $(get_fw_api_info "$TARGET_DIR")"