瀏覽代碼

build: make the bootstrap script create all missing files.

undefined
Sam Hocevar 11 年之前
父節點
當前提交
af695ca56c
共有 1 個文件被更改,包括 17 次插入5 次删除
  1. +17
    -5
      bootstrap

+ 17
- 5
bootstrap 查看文件

@@ -18,11 +18,23 @@ set -e

# LolEngine specific:
sed -ne '/AC_CONFIG_FILES/,$p' configure.ac \
| sed -ne 's/[ \[*]*\([a-z].*\).Makefile.*/\1/p' | while read p; do
if [ ! -f "$p/Makefile.am" ]; then
echo "bootstrap: $p/Makefile.am does not exist -- creating stub"
mkdir -p "$p"
echo "# Stub created by bootstrap" > "$p/Makefile.am"
| sed -ne 's@[^a-z]*\(.*/.*\)[^a-z]*@\1@p' | while read p; do
case "$p" in
*Makefile)
required="${p}.am"
;;
*)
required="${p}.in"
;;
esac
if [ ! -f "${required}" ]; then
echo "bootstrap: ${required} does not exist -- creating stub"
case "$p" in
*/*)
mkdir -p "${p%/*}"
;;
esac
echo "# Stub created by bootstrap" > "${required}"
fi
done



Loading…
取消
儲存