depcomp 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. #! /bin/sh
  2. # depcomp - compile a program generating dependencies as side-effects
  3. scriptversion=2006-10-15.18
  4. # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
  5. # Foundation, Inc.
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  17. # 02110-1301, USA.
  18. # As a special exception to the GNU General Public License, if you
  19. # distribute this file as part of a program that contains a
  20. # configuration script generated by Autoconf, you may include it under
  21. # the same distribution terms that you use for the rest of that program.
  22. # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
  23. case $1 in
  24. '')
  25. echo "$0: No command. Try \`$0 --help' for more information." 1>&2
  26. exit 1;
  27. ;;
  28. -h | --h*)
  29. cat <<\EOF
  30. Usage: depcomp [--help] [--version] PROGRAM [ARGS]
  31. Run PROGRAMS ARGS to compile a file, generating dependencies
  32. as side-effects.
  33. Environment variables:
  34. depmode Dependency tracking mode.
  35. source Source file read by `PROGRAMS ARGS'.
  36. object Object file output by `PROGRAMS ARGS'.
  37. DEPDIR directory where to store dependencies.
  38. depfile Dependency file to output.
  39. tmpdepfile Temporary file to use when outputing dependencies.
  40. libtool Whether libtool is used (yes/no).
  41. Report bugs to <bug-automake@gnu.org>.
  42. EOF
  43. exit $?
  44. ;;
  45. -v | --v*)
  46. echo "depcomp $scriptversion"
  47. exit $?
  48. ;;
  49. esac
  50. if test -z "$depmode" || test -z "$source" || test -z "$object"; then
  51. echo "depcomp: Variables source, object and depmode must be set" 1>&2
  52. exit 1
  53. fi
  54. # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
  55. depfile=${depfile-`echo "$object" |
  56. sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
  57. tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
  58. rm -f "$tmpdepfile"
  59. # Some modes work just like other modes, but use different flags. We
  60. # parameterize here, but still list the modes in the big case below,
  61. # to make depend.m4 easier to write. Note that we *cannot* use a case
  62. # here, because this file can only contain one case statement.
  63. if test "$depmode" = hp; then
  64. # HP compiler uses -M and no extra arg.
  65. gccflag=-M
  66. depmode=gcc
  67. fi
  68. if test "$depmode" = dashXmstdout; then
  69. # This is just like dashmstdout with a different argument.
  70. dashmflag=-xM
  71. depmode=dashmstdout
  72. fi
  73. case "$depmode" in
  74. gcc3)
  75. ## gcc 3 implements dependency tracking that does exactly what
  76. ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  77. ## it if -MD -MP comes after the -MF stuff. Hmm.
  78. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
  79. ## the command line argument order; so add the flags where they
  80. ## appear in depend2.am. Note that the slowdown incurred here
  81. ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  82. for arg
  83. do
  84. case $arg in
  85. -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
  86. *) set fnord "$@" "$arg" ;;
  87. esac
  88. shift # fnord
  89. shift # $arg
  90. done
  91. "$@"
  92. stat=$?
  93. if test $stat -eq 0; then :
  94. else
  95. rm -f "$tmpdepfile"
  96. exit $stat
  97. fi
  98. mv "$tmpdepfile" "$depfile"
  99. ;;
  100. gcc)
  101. ## There are various ways to get dependency output from gcc. Here's
  102. ## why we pick this rather obscure method:
  103. ## - Don't want to use -MD because we'd like the dependencies to end
  104. ## up in a subdir. Having to rename by hand is ugly.
  105. ## (We might end up doing this anyway to support other compilers.)
  106. ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
  107. ## -MM, not -M (despite what the docs say).
  108. ## - Using -M directly means running the compiler twice (even worse
  109. ## than renaming).
  110. if test -z "$gccflag"; then
  111. gccflag=-MD,
  112. fi
  113. "$@" -Wp,"$gccflag$tmpdepfile"
  114. stat=$?
  115. if test $stat -eq 0; then :
  116. else
  117. rm -f "$tmpdepfile"
  118. exit $stat
  119. fi
  120. rm -f "$depfile"
  121. echo "$object : \\" > "$depfile"
  122. alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  123. ## The second -e expression handles DOS-style file names with drive letters.
  124. sed -e 's/^[^:]*: / /' \
  125. -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
  126. ## This next piece of magic avoids the `deleted header file' problem.
  127. ## The problem is that when a header file which appears in a .P file
  128. ## is deleted, the dependency causes make to die (because there is
  129. ## typically no way to rebuild the header). We avoid this by adding
  130. ## dummy dependencies for each header file. Too bad gcc doesn't do
  131. ## this for us directly.
  132. tr ' ' '
  133. ' < "$tmpdepfile" |
  134. ## Some versions of gcc put a space before the `:'. On the theory
  135. ## that the space means something, we add a space to the output as
  136. ## well.
  137. ## Some versions of the HPUX 10.20 sed can't process this invocation
  138. ## correctly. Breaking it into two sed invocations is a workaround.
  139. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  140. rm -f "$tmpdepfile"
  141. ;;
  142. hp)
  143. # This case exists only to let depend.m4 do its work. It works by
  144. # looking at the text of this script. This case will never be run,
  145. # since it is checked for above.
  146. exit 1
  147. ;;
  148. sgi)
  149. if test "$libtool" = yes; then
  150. "$@" "-Wp,-MDupdate,$tmpdepfile"
  151. else
  152. "$@" -MDupdate "$tmpdepfile"
  153. fi
  154. stat=$?
  155. if test $stat -eq 0; then :
  156. else
  157. rm -f "$tmpdepfile"
  158. exit $stat
  159. fi
  160. rm -f "$depfile"
  161. if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
  162. echo "$object : \\" > "$depfile"
  163. # Clip off the initial element (the dependent). Don't try to be
  164. # clever and replace this with sed code, as IRIX sed won't handle
  165. # lines with more than a fixed number of characters (4096 in
  166. # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
  167. # the IRIX cc adds comments like `#:fec' to the end of the
  168. # dependency line.
  169. tr ' ' '
  170. ' < "$tmpdepfile" \
  171. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  172. tr '
  173. ' ' ' >> $depfile
  174. echo >> $depfile
  175. # The second pass generates a dummy entry for each header file.
  176. tr ' ' '
  177. ' < "$tmpdepfile" \
  178. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  179. >> $depfile
  180. else
  181. # The sourcefile does not contain any dependencies, so just
  182. # store a dummy comment line, to avoid errors with the Makefile
  183. # "include basename.Plo" scheme.
  184. echo "#dummy" > "$depfile"
  185. fi
  186. rm -f "$tmpdepfile"
  187. ;;
  188. aix)
  189. # The C for AIX Compiler uses -M and outputs the dependencies
  190. # in a .u file. In older versions, this file always lives in the
  191. # current directory. Also, the AIX compiler puts `$object:' at the
  192. # start of each line; $object doesn't have directory information.
  193. # Version 6 uses the directory in both cases.
  194. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
  195. tmpdepfile="$stripped.u"
  196. if test "$libtool" = yes; then
  197. "$@" -Wc,-M
  198. else
  199. "$@" -M
  200. fi
  201. stat=$?
  202. if test -f "$tmpdepfile"; then :
  203. else
  204. stripped=`echo "$stripped" | sed 's,^.*/,,'`
  205. tmpdepfile="$stripped.u"
  206. fi
  207. if test $stat -eq 0; then :
  208. else
  209. rm -f "$tmpdepfile"
  210. exit $stat
  211. fi
  212. if test -f "$tmpdepfile"; then
  213. outname="$stripped.o"
  214. # Each line is of the form `foo.o: dependent.h'.
  215. # Do two passes, one to just change these to
  216. # `$object: dependent.h' and one to simply `dependent.h:'.
  217. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  218. sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  219. else
  220. # The sourcefile does not contain any dependencies, so just
  221. # store a dummy comment line, to avoid errors with the Makefile
  222. # "include basename.Plo" scheme.
  223. echo "#dummy" > "$depfile"
  224. fi
  225. rm -f "$tmpdepfile"
  226. ;;
  227. icc)
  228. # Intel's C compiler understands `-MD -MF file'. However on
  229. # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
  230. # ICC 7.0 will fill foo.d with something like
  231. # foo.o: sub/foo.c
  232. # foo.o: sub/foo.h
  233. # which is wrong. We want:
  234. # sub/foo.o: sub/foo.c
  235. # sub/foo.o: sub/foo.h
  236. # sub/foo.c:
  237. # sub/foo.h:
  238. # ICC 7.1 will output
  239. # foo.o: sub/foo.c sub/foo.h
  240. # and will wrap long lines using \ :
  241. # foo.o: sub/foo.c ... \
  242. # sub/foo.h ... \
  243. # ...
  244. "$@" -MD -MF "$tmpdepfile"
  245. stat=$?
  246. if test $stat -eq 0; then :
  247. else
  248. rm -f "$tmpdepfile"
  249. exit $stat
  250. fi
  251. rm -f "$depfile"
  252. # Each line is of the form `foo.o: dependent.h',
  253. # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
  254. # Do two passes, one to just change these to
  255. # `$object: dependent.h' and one to simply `dependent.h:'.
  256. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
  257. # Some versions of the HPUX 10.20 sed can't process this invocation
  258. # correctly. Breaking it into two sed invocations is a workaround.
  259. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
  260. sed -e 's/$/ :/' >> "$depfile"
  261. rm -f "$tmpdepfile"
  262. ;;
  263. hp2)
  264. # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  265. # compilers, which have integrated preprocessors. The correct option
  266. # to use with these is +Maked; it writes dependencies to a file named
  267. # 'foo.d', which lands next to the object file, wherever that
  268. # happens to be.
  269. # Much of this is similar to the tru64 case; see comments there.
  270. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  271. test "x$dir" = "x$object" && dir=
  272. base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  273. if test "$libtool" = yes; then
  274. tmpdepfile1=$dir$base.d
  275. tmpdepfile2=$dir.libs/$base.d
  276. "$@" -Wc,+Maked
  277. else
  278. tmpdepfile1=$dir$base.d
  279. tmpdepfile2=$dir$base.d
  280. "$@" +Maked
  281. fi
  282. stat=$?
  283. if test $stat -eq 0; then :
  284. else
  285. rm -f "$tmpdepfile1" "$tmpdepfile2"
  286. exit $stat
  287. fi
  288. for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  289. do
  290. test -f "$tmpdepfile" && break
  291. done
  292. if test -f "$tmpdepfile"; then
  293. sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  294. # Add `dependent.h:' lines.
  295. sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
  296. else
  297. echo "#dummy" > "$depfile"
  298. fi
  299. rm -f "$tmpdepfile" "$tmpdepfile2"
  300. ;;
  301. tru64)
  302. # The Tru64 compiler uses -MD to generate dependencies as a side
  303. # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  304. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
  305. # dependencies in `foo.d' instead, so we check for that too.
  306. # Subdirectories are respected.
  307. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  308. test "x$dir" = "x$object" && dir=
  309. base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  310. if test "$libtool" = yes; then
  311. # With Tru64 cc, shared objects can also be used to make a
  312. # static library. This mechanism is used in libtool 1.4 series to
  313. # handle both shared and static libraries in a single compilation.
  314. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  315. #
  316. # With libtool 1.5 this exception was removed, and libtool now
  317. # generates 2 separate objects for the 2 libraries. These two
  318. # compilations output dependencies in $dir.libs/$base.o.d and
  319. # in $dir$base.o.d. We have to check for both files, because
  320. # one of the two compilations can be disabled. We should prefer
  321. # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  322. # automatically cleaned when .libs/ is deleted, while ignoring
  323. # the former would cause a distcleancheck panic.
  324. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
  325. tmpdepfile2=$dir$base.o.d # libtool 1.5
  326. tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
  327. tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
  328. "$@" -Wc,-MD
  329. else
  330. tmpdepfile1=$dir$base.o.d
  331. tmpdepfile2=$dir$base.d
  332. tmpdepfile3=$dir$base.d
  333. tmpdepfile4=$dir$base.d
  334. "$@" -MD
  335. fi
  336. stat=$?
  337. if test $stat -eq 0; then :
  338. else
  339. rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  340. exit $stat
  341. fi
  342. for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  343. do
  344. test -f "$tmpdepfile" && break
  345. done
  346. if test -f "$tmpdepfile"; then
  347. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  348. # That's a tab and a space in the [].
  349. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  350. else
  351. echo "#dummy" > "$depfile"
  352. fi
  353. rm -f "$tmpdepfile"
  354. ;;
  355. #nosideeffect)
  356. # This comment above is used by automake to tell side-effect
  357. # dependency tracking mechanisms from slower ones.
  358. dashmstdout)
  359. # Important note: in order to support this mode, a compiler *must*
  360. # always write the preprocessed file to stdout, regardless of -o.
  361. "$@" || exit $?
  362. # Remove the call to Libtool.
  363. if test "$libtool" = yes; then
  364. while test $1 != '--mode=compile'; do
  365. shift
  366. done
  367. shift
  368. fi
  369. # Remove `-o $object'.
  370. IFS=" "
  371. for arg
  372. do
  373. case $arg in
  374. -o)
  375. shift
  376. ;;
  377. $object)
  378. shift
  379. ;;
  380. *)
  381. set fnord "$@" "$arg"
  382. shift # fnord
  383. shift # $arg
  384. ;;
  385. esac
  386. done
  387. test -z "$dashmflag" && dashmflag=-M
  388. # Require at least two characters before searching for `:'
  389. # in the target name. This is to cope with DOS-style filenames:
  390. # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
  391. "$@" $dashmflag |
  392. sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
  393. rm -f "$depfile"
  394. cat < "$tmpdepfile" > "$depfile"
  395. tr ' ' '
  396. ' < "$tmpdepfile" | \
  397. ## Some versions of the HPUX 10.20 sed can't process this invocation
  398. ## correctly. Breaking it into two sed invocations is a workaround.
  399. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  400. rm -f "$tmpdepfile"
  401. ;;
  402. dashXmstdout)
  403. # This case only exists to satisfy depend.m4. It is never actually
  404. # run, as this mode is specially recognized in the preamble.
  405. exit 1
  406. ;;
  407. makedepend)
  408. "$@" || exit $?
  409. # Remove any Libtool call
  410. if test "$libtool" = yes; then
  411. while test $1 != '--mode=compile'; do
  412. shift
  413. done
  414. shift
  415. fi
  416. # X makedepend
  417. shift
  418. cleared=no
  419. for arg in "$@"; do
  420. case $cleared in
  421. no)
  422. set ""; shift
  423. cleared=yes ;;
  424. esac
  425. case "$arg" in
  426. -D*|-I*)
  427. set fnord "$@" "$arg"; shift ;;
  428. # Strip any option that makedepend may not understand. Remove
  429. # the object too, otherwise makedepend will parse it as a source file.
  430. -*|$object)
  431. ;;
  432. *)
  433. set fnord "$@" "$arg"; shift ;;
  434. esac
  435. done
  436. obj_suffix="`echo $object | sed 's/^.*\././'`"
  437. touch "$tmpdepfile"
  438. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  439. rm -f "$depfile"
  440. cat < "$tmpdepfile" > "$depfile"
  441. sed '1,2d' "$tmpdepfile" | tr ' ' '
  442. ' | \
  443. ## Some versions of the HPUX 10.20 sed can't process this invocation
  444. ## correctly. Breaking it into two sed invocations is a workaround.
  445. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  446. rm -f "$tmpdepfile" "$tmpdepfile".bak
  447. ;;
  448. cpp)
  449. # Important note: in order to support this mode, a compiler *must*
  450. # always write the preprocessed file to stdout.
  451. "$@" || exit $?
  452. # Remove the call to Libtool.
  453. if test "$libtool" = yes; then
  454. while test $1 != '--mode=compile'; do
  455. shift
  456. done
  457. shift
  458. fi
  459. # Remove `-o $object'.
  460. IFS=" "
  461. for arg
  462. do
  463. case $arg in
  464. -o)
  465. shift
  466. ;;
  467. $object)
  468. shift
  469. ;;
  470. *)
  471. set fnord "$@" "$arg"
  472. shift # fnord
  473. shift # $arg
  474. ;;
  475. esac
  476. done
  477. "$@" -E |
  478. sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
  479. -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  480. sed '$ s: \\$::' > "$tmpdepfile"
  481. rm -f "$depfile"
  482. echo "$object : \\" > "$depfile"
  483. cat < "$tmpdepfile" >> "$depfile"
  484. sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
  485. rm -f "$tmpdepfile"
  486. ;;
  487. msvisualcpp)
  488. # Important note: in order to support this mode, a compiler *must*
  489. # always write the preprocessed file to stdout, regardless of -o,
  490. # because we must use -o when running libtool.
  491. "$@" || exit $?
  492. IFS=" "
  493. for arg
  494. do
  495. case "$arg" in
  496. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  497. set fnord "$@"
  498. shift
  499. shift
  500. ;;
  501. *)
  502. set fnord "$@" "$arg"
  503. shift
  504. shift
  505. ;;
  506. esac
  507. done
  508. "$@" -E |
  509. sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  510. rm -f "$depfile"
  511. echo "$object : \\" > "$depfile"
  512. . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  513. echo " " >> "$depfile"
  514. . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  515. rm -f "$tmpdepfile"
  516. ;;
  517. none)
  518. exec "$@"
  519. ;;
  520. *)
  521. echo "Unknown depmode $depmode" 1>&2
  522. exit 1
  523. ;;
  524. esac
  525. exit 0
  526. # Local Variables:
  527. # mode: shell-script
  528. # sh-indentation: 2
  529. # eval: (add-hook 'write-file-hooks 'time-stamp)
  530. # time-stamp-start: "scriptversion="
  531. # time-stamp-format: "%:y-%02m-%02d.%02H"
  532. # time-stamp-end: "$"
  533. # End: