diff options
| author | Glenn Morris | 2010-10-21 20:26:34 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-10-21 20:26:34 -0700 |
| commit | f3dd02ea54c1591ca8088749dd29de1af1a7c6ba (patch) | |
| tree | 0ce3bf8b1401c1f3a0c6dc129d018481ee2f3300 | |
| parent | 7c23d9e85b58d0cc360c255ff86bd3e723259d7f (diff) | |
| download | emacs-f3dd02ea54c1591ca8088749dd29de1af1a7c6ba.tar.gz emacs-f3dd02ea54c1591ca8088749dd29de1af1a7c6ba.zip | |
* make-dist: Avoid listing .el files twice.
Don't try to run autoconf if --no-update.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rwxr-xr-x | make-dist | 82 |
2 files changed, 43 insertions, 44 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-10-22 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * make-dist: Avoid listing .el files twice. Don't try to run | ||
| 4 | autoconf if --no-update. | ||
| 5 | |||
| 1 | 2010-10-20 Glenn Morris <rgm@gnu.org> | 6 | 2010-10-20 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * make-dist: No longer create lisp/MANIFEST. | 8 | * make-dist: No longer create lisp/MANIFEST. |
| @@ -186,72 +186,66 @@ them, and try again." >&2 | |||
| 186 | exit 1 | 186 | exit 1 |
| 187 | fi | 187 | fi |
| 188 | 188 | ||
| 189 | ### Find where to run Emacs. | 189 | if [ $check = yes ]; then |
| 190 | if [ $check = yes ]; | ||
| 191 | then | ||
| 192 | ### Check for .elc files with no corresponding .el file. | ||
| 193 | ls -1 lisp/[a-zA-Z]*.el lisp/[a-z]*/[a-zA-Z0-9]*.el \ | 190 | ls -1 lisp/[a-zA-Z]*.el lisp/[a-z]*/[a-zA-Z0-9]*.el \ |
| 194 | lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \ | 191 | lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \ |
| 195 | lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \ | 192 | lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \ |
| 196 | leim/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el | 193 | leim/[a-z]*/[a-z]*.el > /tmp/el |
| 194 | |||
| 197 | ls -1 lisp/[a-zA-Z]*.elc lisp/[a-z]*/[a-zA-Z0-9]*.elc \ | 195 | ls -1 lisp/[a-zA-Z]*.elc lisp/[a-z]*/[a-zA-Z0-9]*.elc \ |
| 198 | lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.elc \ | 196 | lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.elc \ |
| 199 | lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.elc \ | 197 | lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.elc \ |
| 200 | leim/[a-z]*/[a-z]*.elc > /tmp/elc | 198 | leim/[a-z]*/[a-z]*.elc > /tmp/elc |
| 201 | bogosities="`comm -13 /tmp/el /tmp/elc`" | 199 | |
| 202 | if [ "${bogosities}" != "" ]; then | 200 | ## Check for .elc files with no corresponding .el file. |
| 201 | sed 's/\.el$/.elc/' /tmp/el > /tmp/elelc | ||
| 202 | |||
| 203 | bogosities="`comm -13 /tmp/elelc /tmp/elc`" | ||
| 204 | if [ x"${bogosities}" != x"" ]; then | ||
| 203 | echo "The following .elc files have no corresponding .el files:" | 205 | echo "The following .elc files have no corresponding .el files:" |
| 204 | echo "${bogosities}" | 206 | echo "${bogosities}" |
| 205 | fi | 207 | fi |
| 206 | rm -f /tmp/el /tmp/elc | ||
| 207 | 208 | ||
| 208 | ### Check for .el files with no corresponding .elc file. | 209 | ### Check for .el files with no corresponding .elc file. |
| 209 | ls -1 lisp/[a-zA-Z]*.el lisp/[a-z]*/[a-zA-Z0-9]*.el \ | 210 | sed 's/\.elc$/.el/' /tmp/elc > /tmp/elcel |
| 210 | lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \ | 211 | losers="`comm -23 /tmp/el /tmp/elcel`" |
| 211 | lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \ | 212 | |
| 212 | leim/[a-z]*/[a-z]*.el > /tmp/el | 213 | rm -f /tmp/el /tmp/elc /tmp/elcel /tmp/elelc |
| 213 | ls -1 lisp/[a-zA-Z]*.elc lisp/[a-z]*/[a-zA-Z0-9]*.elc \ | 214 | |
| 214 | lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \ | ||
| 215 | lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \ | ||
| 216 | leim/[a-z]*/[a-z]*.elc | sed 's/\.elc$/.el/' > /tmp/elc | ||
| 217 | losers="`comm -23 /tmp/el /tmp/elc`" | ||
| 218 | bogosities= | 215 | bogosities= |
| 219 | for file in $losers; do | 216 | for file in $losers; do |
| 220 | if ! grep -q "no-byte-compile: t" $file; then | 217 | grep -q "no-byte-compile: t" $file && continue |
| 221 | case $file in | 218 | case $file in |
| 222 | site-init.el | site-load.el | site-start.el | default.el) | 219 | site-init.el | site-load.el | site-start.el | default.el) continue ;; |
| 223 | ;; | 220 | esac |
| 224 | *) | 221 | |
| 225 | bogosities="$file $bogosities" | 222 | bogosities="$file $bogosities" |
| 226 | ;; | 223 | |
| 227 | esac | ||
| 228 | fi | ||
| 229 | done | 224 | done |
| 230 | if [ x"${bogosities}" != x"" ]; then | 225 | if [ x"${bogosities}" != x"" ]; then |
| 231 | echo "The following .el files have no corresponding .elc files:" | 226 | echo "The following .el files have no corresponding .elc files:" |
| 232 | echo "${bogosities}" | 227 | echo "${bogosities}" |
| 233 | fi | 228 | fi |
| 234 | rm -f /tmp/el /tmp/elc | ||
| 235 | fi | 229 | fi |
| 236 | 230 | ||
| 237 | ### Make sure configure is newer than configure.in. | 231 | if [ $update = yes ]; then |
| 238 | if [ "x`ls -t configure configure.in | sed q`" != "xconfigure" ]; then | ||
| 239 | echo "\`./configure.in' is newer than \`./configure'" >&2 | ||
| 240 | echo "Running autoconf" >&2 | ||
| 241 | autoconf || { x=$?; echo Autoconf FAILED! >&2; exit $x; } | ||
| 242 | fi | ||
| 243 | 232 | ||
| 244 | ### Make sure src/stamp-h.in is newer than configure.in. | 233 | ## Make sure configure is newer than configure.in. |
| 245 | if [ "x`ls -t src/stamp-h.in configure.in | sed q`" != "xsrc/stamp-h.in" ]; then | 234 | if [ "x`ls -t configure configure.in | sed q`" != "xconfigure" ]; then |
| 246 | echo "\`./configure.in' is newer than \`./src/stamp-h.in'" >&2 | 235 | echo "\`./configure.in' is newer than \`./configure'" >&2 |
| 247 | echo "Running autoheader" >&2 | 236 | echo "Running autoconf" >&2 |
| 248 | autoheader || { x=$?; echo Autoheader FAILED! >&2; exit $x; } | 237 | autoconf || { x=$?; echo Autoconf FAILED! >&2; exit $x; } |
| 249 | rm -f src/stamp-h.in | 238 | fi |
| 250 | echo timestamp > src/stamp-h.in | 239 | |
| 251 | fi | 240 | ## Make sure src/stamp-h.in is newer than configure.in. |
| 241 | if [ "x`ls -t src/stamp-h.in configure.in | sed q`" != "xsrc/stamp-h.in" ]; then | ||
| 242 | echo "\`./configure.in' is newer than \`./src/stamp-h.in'" >&2 | ||
| 243 | echo "Running autoheader" >&2 | ||
| 244 | autoheader || { x=$?; echo Autoheader FAILED! >&2; exit $x; } | ||
| 245 | rm -f src/stamp-h.in | ||
| 246 | echo timestamp > src/stamp-h.in | ||
| 247 | fi | ||
| 252 | 248 | ||
| 253 | if [ $update = yes ]; | ||
| 254 | then | ||
| 255 | echo "Updating Info files" | 249 | echo "Updating Info files" |
| 256 | (cd doc/emacs; make info) | 250 | (cd doc/emacs; make info) |
| 257 | (cd doc/misc; make info) | 251 | (cd doc/misc; make info) |
| @@ -268,7 +262,7 @@ then | |||
| 268 | 262 | ||
| 269 | echo "Recompiling Lisp files" | 263 | echo "Recompiling Lisp files" |
| 270 | $EMACS -batch -f batch-byte-recompile-directory lisp leim | 264 | $EMACS -batch -f batch-byte-recompile-directory lisp leim |
| 271 | fi | 265 | fi # $update = yes |
| 272 | 266 | ||
| 273 | echo "Creating staging directory: \`${tempparent}'" | 267 | echo "Creating staging directory: \`${tempparent}'" |
| 274 | 268 | ||