Changeset 2850


Ignore:
Timestamp:
Aug 18, 2013, 4:16:51 PM (6 years ago)
Author:
sam
Message:

build: make the bootstrap script create all missing files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootstrap

    r2285 r2850  
    1919# LolEngine specific:
    2020sed -ne '/AC_CONFIG_FILES/,$p' configure.ac \
    21   | sed -ne 's/[ \[*]*\([a-z].*\).Makefile.*/\1/p' | while read p; do
    22     if [ ! -f "$p/Makefile.am" ]; then
    23         echo "bootstrap: $p/Makefile.am does not exist -- creating stub"
    24         mkdir -p "$p"
    25         echo "# Stub created by bootstrap" > "$p/Makefile.am"
     21  | sed -ne 's@[^a-z]*\(.*/.*\)[^a-z]*@\1@p' | while read p; do
     22    case "$p" in
     23        *Makefile)
     24            required="${p}.am"
     25            ;;
     26        *)
     27            required="${p}.in"
     28            ;;
     29    esac
     30    if [ ! -f "${required}" ]; then
     31        echo "bootstrap: ${required} does not exist -- creating stub"
     32        case "$p" in
     33            */*)
     34                mkdir -p "${p%/*}"
     35                ;;
     36        esac
     37        echo "# Stub created by bootstrap" > "${required}"
    2638    fi
    2739done
Note: See TracChangeset for help on using the changeset viewer.