📄 dyngen_prototype.sh
字号:
#!/bin/sh# This script generates the dynamic part of the prototype file depending# on the distribution tree# The distr base directory is passed as $1if [ $# != 1 ]; then echo "Dynamically generates prototype entries depending on the distribution tree.\nCalled from packaging.script.\nUsage: $0 base_directory" exit 1fi# First build the codepages and append codepage entries to prototypeecho "#\n# Codepages \n#"echo d none samba/lib/codepages 0755 root otherCODEPAGELIST="437 737 850 852 861 932 866 949 950 936"for p in $CODEPAGELIST; do $1/source/bin/make_smbcodepage c $p $1/source/codepages/codepage_def.$p $1/source/codepages/codepage.$p echo f none samba/lib/codepages/codepage.$p=source/codepages/codepage.$p 0644 root otherdone# Add the binaries, docs and SWAT filesecho "#\n# Binaries \n#"cd $1/source/binfor binfile in *do if [ -f $binfile ]; then echo f none samba/bin/$binfile=source/bin/$binfile 0755 root other fidoneecho "#\n# HTML documentation \n#"echo d none samba/docs/htmldocs 0755 root othercd $1/docs/htmldocsfor htmldoc in *do if [ -f $htmldoc ]; then echo f none samba/docs/htmldocs/$htmldoc=docs/htmldocs/$htmldoc 0644 root other fidoneecho "#\n# Text Docs \n#"echo d none samba/docs/textdocs 0755 root othercd $1/docs/textdocsfor textdoc in *do if [ -f $textdoc ]; then echo f none samba/docs/textdocs/$textdoc=docs/textdocs/$textdoc 0644 root other fidoneecho "#\n# SWAT \n#"cd $1find swat -type f | pkgproto swat/=samba/swat/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -