[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gendocs.sh patch
From: |
Simon Josefsson |
Subject: |
gendocs.sh patch |
Date: |
Sun, 23 Nov 2003 10:04:15 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
The 'rm -rf' in gendocs.sh does not work well if you use CVS. It also
seemed unnecessary in most places, either 'mv' or 'tar cfz' were
already used, that overwrite any existing files. The 'html by node'
created a file called '.tar.gz' for me, which seems wrong.
2003-11-23 Simon Josefsson <address@hidden>
* util/gendocs.sh: Don't blindly 'rm -rf'. Create HTML tar.gz as
${PACKAGE}_html_node.tar.gz instead of $PACKAGE_html_node.tar.gz.
Index: gendocs.sh
===================================================================
RCS file: /cvsroot/texinfo/texinfo/util/gendocs.sh,v
retrieving revision 1.6
diff -u -p -u -w -r1.6 gendocs.sh
--- gendocs.sh 4 Nov 2003 13:45:56 -0000 1.6
+++ gendocs.sh 23 Nov 2003 09:02:03 -0000
@@ -135,8 +135,6 @@ if test ! -r $GENDOCS_TEMPLATE_DIR/gendo
fi
echo Generating output formats for $srcfile
-# remove any old junk
-rm -rf $outdir/
echo Generating info files...
${MAKEINFO} -o $PACKAGE.info $srcfile
@@ -192,10 +190,13 @@ else
fi
(
cd ${split_html_dir} || exit 1
- tar -czf ../$outdir/$PACKAGE_html_node.tar.gz -- *.html
+ tar -czf ../$outdir/${PACKAGE}_html_node.tar.gz -- *.html
)
-html_node_tgz_size="`calcsize $outdir/$PACKAGE_html_node.tar.gz`"
-mv ${split_html_dir} $outdir/html_node
+html_node_tgz_size="`calcsize $outdir/${PACKAGE}_html_node.tar.gz`"
+rm -f $outdir/html_node/*.html
+mkdir -p $outdir/html_node/
+mv ${split_html_dir}/*.html $outdir/html_node/
+rmdir ${split_html_dir}
echo Making .tar.gz for sources...
srcfiles=`ls *.texinfo *.texi *.txi 2>/dev/null`
- gendocs.sh patch,
Simon Josefsson <=