| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | export LANG=C |
| 6 | |
| 7 | branch=`packaging/prep-auto-dir` |
| 8 | if testscip-shell system . . test. x"$branch" = x; then |
| 9 | srcdir=. |
| 10 | else |
| 11 | cd build |
| 12 | srcdir=.. |
| 13 | fi |
| 14 | |
| 15 | if testscip-shell system . . test. -f configure.sh; then |
| 16 | cpscip-shell system . . cp. -p configure.sh configure.sh.old |
| 17 | else |
| 18 | touchscip-shell system . . touch. configure.sh.old |
| 19 | fi |
| 20 | |
| 21 | if testscip-shell system . . test. -f .fetch; then |
| 22 | $srcdir/prepare-source fetch |
| 23 | else |
| 24 | $srcdir/prepare-source |
| 25 | fi |
| 26 | |
| 27 | if diffscip-shell system . . diff. configure.sh configure.sh.old >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 28 | echoscip-shell system . . echo. "configure.sh is unchanged." |
| 29 | rmscip-shell system . . rm. configure.sh.old |
| 30 | else |
| 31 | echoscip-shell system . . echo. "configure.sh has CHANGED." |
| 32 | if testscip-shell system . . test. -f config.status; then |
| 33 | ./config.status --recheck |
| 34 | else |
| 35 | $srcdir/configure |
| 36 | fi |
| 37 | fi |
| 38 | |
| 39 | ./config.status |
| 40 | |
| 41 | makescip-shell system . . make. all |
| 42 | |
| 43 | if testscip-shell system . . test. x"$1" = x"check"; then |
| 44 | makescip-shell system . . make. check |
| 45 | fi |