summaryrefslogtreecommitdiff
path: root/U
diff options
context:
space:
mode:
authorRaphael Manfredi <Raphael_Manfredi@pobox.com>2018-06-05 14:28:56 +0200
committerRaphael Manfredi <Raphael_Manfredi@pobox.com>2018-06-05 15:03:43 +0200
commit7c4c3dd291c741e2a42c78efd77ffbd3a1c9c1c1 (patch)
tree773fe4188bb797c492f9dbb389cf028fd0b2f787 /U
parentcf4ee93a463709e3d83d485c316d8db28e162f00 (diff)
Added Specific.U as a hook for project-specific code.
After generating config.sh, this is a place where optional generation can happen, before going on with the .SH file extractions and dependency computations. Typically, this can be used to generate a revision.h file.
Diffstat (limited to 'U')
-rw-r--r--U/Specific.U33
1 files changed, 33 insertions, 0 deletions
diff --git a/U/Specific.U b/U/Specific.U
new file mode 100644
index 0000000..30babf8
--- /dev/null
+++ b/U/Specific.U
@@ -0,0 +1,33 @@
+?RCS:
+?RCS: Copyright (c) 2018, Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?X:
+?X: This unit is intended to be a project-specific hook.
+?X: By default, it is therefore empty, meant to be copied to your private
+?X: unit directory (U) and seasoned to taste.
+?X:
+?X: If you need specific code generation to happen once the configuration
+?X: is finished and config.sh was generated, but before the extraction of
+?X: the .SH files begins, then this is the place to put these special
+?X: code that the .SH files will require to run properly.
+?X:
+?X: When this unit triggers, Configure is back to the top directory.
+?X:
+?MAKE:Specific: Config_sh
+?MAKE: -pick add $@ %<
+?T:file
+?X:
+?X: Keep the above ?MAKE: lines and then append your specific code here.
+?X:
+: project-specific code
+file=revision.h
+echo " "
+echo "Generating $file..." >&4
+bin/svn-revision . $file
+