create-tarball: Make it more comfortable to use the --copy-docs option.
authorKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:18:39 +0000 (11:18 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:28:25 +0000 (11:28 +0100)
Now you can directly specify the 'make release' output dir without any
modifications.

Karolin
(cherry picked from commit 77e2d2f1d29b69699f4539abfce7b2f32db843e4)

release-scripts/create-tarball

index 5c9df90d8dcb9505f7387a696d7b7d28fb3f8ff4..26a72709313ca477ed1eb0ee86be47a7a3c320c0 100755 (executable)
@@ -116,6 +116,19 @@ function buildDocs
        rsync -av "${OPT_DOCSDIR}"/ docs/
        exitOnError $? "Failed top copy docs from ${OPT_DOCSDIR}"
 
+       cd docs/
+       /bin/rm -rf test.pdf Samba4*pdf htmldocs/Samba4* htmldocs/test
+       if [ -d manpages-3 ]; then
+               mv manpages-3 manpages
+       fi
+       if [ -d htmldocs/manpages-3 ]; then
+               mv htmldocs/manpages-3 htmldocs/manpages
+       fi
+       # Sync thanks, history and registry/ into the docs dir
+       rsync -Ca --exclude=.svn ../../$OPT_BRANCH/docs-xml/registry ../docs/
+       rsync -Ca --exclude=.svn ../../$OPT_BRANCH/docs-xml/archives/ ../docs/
+       cd ../
+
        return 0
     fi