summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1998-04-30 16:00:18 +0000
committerHerb Lewis <herb@samba.org>1998-04-30 16:00:18 +0000
commit9aba1bee37b6981e69ea738f05cc92e0125f6007 (patch)
treeea226d2839ecfcc3c56743933c2d10e9052f4cb3 /packaging
parent3eae1e3f8e53c51f638b1b381085f29feea1c517 (diff)
downloadsamba-9aba1bee37b6981e69ea738f05cc92e0125f6007.tar.gz
samba-9aba1bee37b6981e69ea738f05cc92e0125f6007.tar.bz2
samba-9aba1bee37b6981e69ea738f05cc92e0125f6007.zip
mkman - add argument for making html versions of man pages
idb.pl - minor fixups for sorting of output file. (This used to be commit 4657367c5c80867fcd08e9bbe7557bc2ac770504)
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/SGI/idb.pl25
-rwxr-xr-xpackaging/SGI/mkman19
2 files changed, 27 insertions, 17 deletions
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 51ba1df7d3..424c4ed130 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -44,13 +44,16 @@ if (@codepage) {
@codepage[0] =~ s/^.*\=//;
chdir '../../source';
# if we have codepages we need to create them for the package
+ system("chmod +x ./installcp.sh");
system("./installcp.sh . ../packaging/SGI/codepages . @codepage[0]");
chdir $curdir;
@codepage = sort split(' ',@codepage[0]);
}
# install the swat files
chdir '../../source';
+system("chmod +x ./installswat.sh");
system("./installswat.sh ../packaging/SGI/swat ./");
+system("cp ../swat/README ../packaging/SGI/swat");
chdir $curdir;
# add my local files to the list of binaries to install
@@ -81,15 +84,15 @@ print IDB "l 0000 root sys etc/rc0.d/K39samba packaging/SGI samba.sw.base symval
print IDB "l 0000 root sys etc/rc2.d/S81samba packaging/SGI samba.sw.base symval(../init.d/samba)\n";
@copyfile = grep (/^COPY/,@allfiles);
-print IDB "d 0755 root sys usr/relnotes/samba packaging/SGI samba.man.relnotes\n";
+print IDB "d 0755 root sys usr/relnotes/samba/ packaging/SGI samba.man.relnotes\n";
print IDB "f 0644 root sys usr/relnotes/samba/@copyfile[0] @copyfile[0] samba.man.relnotes\n";
print IDB "f 0644 root sys usr/relnotes/samba/legal_notice.html packaging/SGI/legal_notice.html samba.man.relnotes\n";
print IDB "f 0644 root sys usr/relnotes/samba/samba-relnotes.html packaging/SGI/relnotes.html samba.man.relnotes\n";
-print IDB "d 0755 root sys usr/samba packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/ packaging/SGI samba.sw.base\n";
print IDB "f 0444 root sys usr/samba/README packaging/SGI/README samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/bin packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/bin/ packaging/SGI samba.sw.base\n";
while(@bins) {
$nextfile = shift @bins;
@@ -115,7 +118,7 @@ while(@bins) {
}
}
-print IDB "d 0755 root sys usr/samba/docs docs samba.man.doc\n";
+print IDB "d 0755 root sys usr/samba/docs/ docs samba.man.doc\n";
while (@docs) {
$nextfile = shift @docs;
next if ($nextfile eq "CVS");
@@ -129,7 +132,7 @@ while (@docs) {
}
print IDB "f 0755 root sys usr/samba/inetd.sh packaging/SGI/inetd.sh samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/lib packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/lib/ packaging/SGI samba.sw.base\n";
if (@codepage) {
print IDB "d 0755 root sys usr/samba/lib/codepages packaging/SGI samba.sw.base\n";
while (@codepage) {
@@ -140,7 +143,9 @@ if (@codepage) {
print IDB "f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base config(update)\n";
print IDB "f 0755 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/src packaging/SGI samba.src.samba\n";
+print IDB "d 0644 root sys usr/samba/private/ packaging/SGI samba.sw.base\n";
+print IDB "f 0600 root sys usr/samba/private/smbpasswd packaging/SGI/smbpasswd samba.sw.base config(update)\n";
+print IDB "d 0755 root sys usr/samba/src/ packaging/SGI samba.src.samba\n";
@sorted = sort(@allfiles);
while (@sorted) {
$nextfile = shift @sorted;
@@ -161,7 +166,7 @@ while (@sorted) {
}
}
-print IDB "d 0755 root sys usr/samba/swat packaging/SGI/swat samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/swat/ packaging/SGI/swat samba.sw.base\n";
while (@swatfiles) {
$nextfile = shift @swatfiles;
($file = $nextfile) =~ s/^packaging\/SGI\/swat\///;
@@ -174,10 +179,10 @@ while (@swatfiles) {
}
}
-print IDB "d 0755 root sys usr/samba/var packaging/SGI samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/var/locks packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/var/ packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/var/locks/ packaging/SGI samba.sw.base\n";
-print IDB "d 0755 root sys usr/share/catman/u_man packaging/SGI samba.man.manpages\n";
+print IDB "d 0755 root sys usr/share/catman/u_man/ packaging/SGI samba.man.manpages\n";
$olddirnum = "0";
while (@catman) {
$nextfile = shift @catman;
diff --git a/packaging/SGI/mkman b/packaging/SGI/mkman
index fedeb4d719..4f14fafcdc 100755
--- a/packaging/SGI/mkman
+++ b/packaging/SGI/mkman
@@ -1,15 +1,18 @@
#!/bin/sh
+# if you wish to make html versions of the man pages then add the
+# argument html when calling this script. You must have rman installed.
+#
if [ ! -d catman ]; then
mkdir catman
fi
-# if you wish to make html versions of the man pages then uncomment
-# the following section and the "rman" command below
-#
-# if [ ! -d html ]; then
-# mkdir html
-# fi
+if [ "$1" = "html" ]; then
+ if [ ! -d html ]; then
+ mkdir html
+ fi
+fi
+
FILES="*.?"
@@ -17,6 +20,8 @@ cd ../../docs
for FILE in $FILES ; do
neqn $FILE | tbl | nroff -man > ../packaging/SGI/catman/`basename $FILE`
compress -f ../packaging/SGI/catman/`basename $FILE`
-# rman -f html -r "%s.%s.html" $FILE > ../packaging/SGI/html/$FILE.html
+ if [ "$1" = "html" ]; then
+ rman -f html -r "%s.%s.html" $FILE > ../packaging/SGI/html/$FILE.html
+ fi
done
cd ../packaging/SGI