about summary refs log tree commit diff
path: root/manual/libc-texinfo.sh
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2012-05-04 17:09:56 +0200
committerAndreas Jaeger <aj@suse.de>2012-05-04 17:09:56 +0200
commit110c96ff292adf9c5be51a8a22ee8ff8e1af3959 (patch)
tree7ad0298d935bff4bb1c278d277209fdf8b54fff3 /manual/libc-texinfo.sh
parent1261f5d10cef72c93474f0198d07343d42b82cf7 (diff)
downloadglibc-110c96ff292adf9c5be51a8a22ee8ff8e1af3959.tar.gz
glibc-110c96ff292adf9c5be51a8a22ee8ff8e1af3959.tar.xz
glibc-110c96ff292adf9c5be51a8a22ee8ff8e1af3959.zip
Revert "Do not build manual in the source directory"
This reverts commit e3945c47bdac1149a1fec5d46bd567a248cd17b9.

reverting since it breaks building.
Diffstat (limited to 'manual/libc-texinfo.sh')
-rw-r--r--manual/libc-texinfo.sh19
1 files changed, 8 insertions, 11 deletions
diff --git a/manual/libc-texinfo.sh b/manual/libc-texinfo.sh
index 60e224bb8d..79ac9773ee 100644
--- a/manual/libc-texinfo.sh
+++ b/manual/libc-texinfo.sh
@@ -1,13 +1,10 @@
 #! /bin/sh
 
-OUTDIR=$1
-shift
-
 # Create libc.texinfo from the chapter files.
 
-trap "rm -f ${OUTDIR}*.$$; exit 1" 1 2 15
+trap "rm -f *.$$; exit 1" 1 2 15
 
-exec 3>${OUTDIR}incl.$$ 4>${OUTDIR}smenu.$$ 5>${OUTDIR}lmenu.$$
+exec 3>incl.$$ 4>smenu.$$ 5>lmenu.$$
 
 build_menu () {
   while IFS=: read file node; do
@@ -54,7 +51,7 @@ collect_nodes $3 | build_menu
 
 exec 3>&- 4>&- 5>&-
 
-mv -f ${OUTDIR}incl.$$ ${OUTDIR}chapters.texi
+mv -f incl.$$ chapters.texi
 
 {
  echo '@menu'
@@ -75,7 +72,7 @@ mv -f ${OUTDIR}incl.$$ ${OUTDIR}chapters.texi
   }
 
   !/^\*/ { print; }
- ' ${OUTDIR}smenu.$$
+ ' smenu.$$
  cat <<EOF
 * Free Manuals::		 Free Software Needs Free Documentation.
 * Copying::                      The GNU Lesser General Public License says
@@ -93,8 +90,8 @@ Indices
 
  --- The Detailed Node Listing ---
 EOF
- cat ${OUTDIR}lmenu.$$
- echo '@end menu'; } >${OUTDIR}top-menu.texi.$$
-mv -f ${OUTDIR}top-menu.texi.$$ ${OUTDIR}top-menu.texi
+ cat lmenu.$$
+ echo '@end menu'; } >top-menu.texi.$$
+mv -f top-menu.texi.$$ top-menu.texi
 
-rm -f ${OUTDIR}*.$$
+rm -f *.$$