次の問題について助けていただきたいです。
私は、Launchpad の Recipes 機能を使用して毎日ビルドされた debian パッケージを持っています。バージョン名 (およびソース ディレクトリの名前) は自動的に生成され、現在のリビジョン番号が含まれます。リビジョン番号を抽出して CMake に渡すように debian/rules ファイルを変更したいと考えています。
これまでのところ動作しません - 空の文字列が CMake に渡されているようです。問題が私のmakeコードにあるのか、それとも他の何かにあるのかわかりません。
ルール ファイル:
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
%:
dh $@ --parallel --list-missing
# Try to detect the Bazaar revision number from the directory name
ifneq ($(findstring bzr,$(PWD)),)
COMPONENTS := $(PWD)
COMPONENTSL := $(subst -,' ',COMPONENTS)
COMPONENTSLL := $(subst ~,' ',COMPONENTSL)
BZRVER := $(filter bzr%,COMPONENTSLL)
BZRVERN := $(subst bzr,,$(BZRVER))
override_dh_auto_configure:
dh_auto_configure -- -DRELEASE_BUILD=0 -DBZR_REVISION=$(BZRVERN)
endif
ビルド ログの関連セクション:
make[1]: Entering directory `/build/buildd/stellarium-0.11.2~bzr5066'
dh_auto_configure -- -DRELEASE_BUILD=0 -DBZR_REVISION=
mkdir -p obj-i686-linux-gnu
cd obj-i686-linux-gnu
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DRELEASE_BUILD=0 -DBZR_REVISION=
何か案は?