1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Adding the "Using Samba" book to the packaging in HEAD.

(This used to be commit 4f06373bc4)
This commit is contained in:
Shirish Kalele 2001-04-13 18:18:25 +00:00
parent abd4296ebf
commit 14748b0bf5
2 changed files with 43 additions and 7 deletions

View File

@ -28,6 +28,20 @@ add_dynamic_entries()
echo f none samba/lib/codepages/codepage.$p=source/codepages/codepage.$p 0644 root other
done
# Create unicode maps
if [ ! -f $DISTR_BASE/source/bin/make_unicodemap ]; then
echo "Missing $DISTR_BASE/source/bin/make_unicodemap. Aborting." >&2
exit 1
fi
# Pull in all the unicode map files from source/codepages/CP*.TXT
list=`find $DISTR_BASE/source/codepages -name "CP*.TXT" | sed 's|^.*CP\(.*\)\.TXT|\1|'`
for umap in $list
do
$DISTR_BASE/source/bin/make_unicodemap $umap $DISTR_BASE/source/codepages/CP$umap.TXT $DISTR_BASE/source/codepages/unicode_map.$umap
echo f none samba/lib/codepages/unicode_map.$umap=source/codepages/unicode_map.$umap 0644 root other
done
# Add the binaries, docs and SWAT files
echo "#\n# Binaries \n#"
@ -39,14 +53,26 @@ add_dynamic_entries()
fi
done
echo "#\n# HTML documentation \n#"
echo d none samba/docs/htmldocs 0755 root other
cd $DISTR_BASE/docs/htmldocs
for htmldoc in *
cd $DISTR_BASE
list=`find docs/htmldocs -type d | grep -v "/CVS$"`
for docdir in $list
do
if [ -f $htmldoc ]; then
echo f none samba/docs/htmldocs/$htmldoc=docs/htmldocs/$htmldoc 0644 root other
if [ -d $docdir ]; then
echo d none samba/$docdir 0755 root other
fi
done
list=`find docs/htmldocs -type f | grep -v /CVS/`
for htmldoc in $list
do
if [ -f $htmldoc ]; then
echo f none samba/$htmldoc=$htmldoc 0644 root other
fi
done
# Create a symbolic link to the Samba book in docs/ for beginners
echo 's none samba/docs/samba_book=htmldocs/using_samba'
echo "#\n# Text Docs \n#"
echo d none samba/docs/textdocs 0755 root other
cd $DISTR_BASE/docs/textdocs
@ -58,12 +84,12 @@ add_dynamic_entries()
done
echo "#\n# SWAT \n#"
cd $DISTR_BASE
list=`find swat -type d`
list=`find swat -type d | grep -v "/CVS$"`
for i in $list
do
echo "d none samba/$i 0755 root other"
done
list=`find swat -type f`
list=`find swat -type f | grep -v /CVS/`
for i in $list
do
echo "f none samba/$i=$i 0644 root other"
@ -77,6 +103,12 @@ add_dynamic_entries()
fi
done
echo "#\n# Using Samba Book files for SWAT\n#"
cd $DISTR_BASE/docs/htmldocs
# set up a symbolic link instead of duplicating the book tree
echo 's none samba/swat/using_samba=../docs/htmldocs/using_samba'
}
if [ $# = 0 ]

View File

@ -9,6 +9,7 @@ i pkginfo=./pkginfo
i copyright=./copyright
i request=./request
i preremove=./preremove
i postinstall=./postinstall
i i.swat=./i.swat
i r.swat=./r.swat
#
@ -80,5 +81,8 @@ f none samba/lib/regeditscripts/Win95_PlainPassword.reg=docs/Win95_PlainPassword
f none samba/lib/regeditscripts/Win98_PlainPassword.reg=docs/Win98_PlainPassword.reg 0444 root other
f none samba/lib/regeditscripts/Win2000_PlainPassword.reg=docs/Win2000_PlainPassword.reg 0444 root other
#
# Random files
f none samba/docs/Samba-HOWTO-Collection.pdf=docs/Samba-HOWTO-Collection.pdf 0644 root other
#
# Static part of prototype file ends.
#