Browse Source

build: make the bootstrap script create all missing files.

undefined
Sam Hocevar 11 years ago
parent
commit
af695ca56c
1 changed files with 17 additions and 5 deletions
  1. +17
    -5
      bootstrap

+ 17
- 5
bootstrap View File

@@ -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…
Cancel
Save