From 09c0c6f0d6fa02554a2a3e0c10a2c93ae4de3583 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Mon, 16 Mar 1998 23:11:48 +0000 Subject: add swat to build package fix minor bug in findsmb (This used to be commit d21a4368d27c77b083ac30ae080649157255b9f7) --- packaging/SGI/idb.pl | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) (limited to 'packaging/SGI/idb.pl') diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index 7eea09d8d5..2e04fc0716 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -6,11 +6,6 @@ require "pwd.pl" || die "Required pwd.pl not found"; &initpwd; $curdir = $ENV{"PWD"}; -# get a complete list of all files in the tree -chdir '../../'; -&dodir('.'); -chdir $curdir; - # We don't want the files listed in .cvsignore in the source tree open(IGNORES,"../../source/.cvsignore") || die "Unable to open .cvsignore file\n"; while () { @@ -53,20 +48,30 @@ if (@codepage) { chdir $curdir; @codepage = sort split(' ',@codepage[0]); } +# install the swat files +chdir '../../source'; +system("./installswat.sh ../packaging/SGI/swat ./"); +chdir $curdir; # add my local files to the list of binaries to install @bins = sort (@sprogs,@progs,@progs1,@scripts,("findsmb","sambalp","smbprint")); +# get a complete list of all files in the tree +chdir '../../'; +&dodir('.'); +chdir $curdir; + # the files installed in docs include all the original files in docs plus all # the "*.doc" files from the source tree @docs = sort byfilename grep (!/^docs\/$/ & (/^source\/.*\.doc$/ | /^docs\//),@allfiles); +@swatfiles = sort grep(/^packaging\/SGI\/swat/, @allfiles); @catman = sort grep(/^packaging\/SGI\/catman/ & !/\/$/, @allfiles); @catman = sort bydirnum @catman; # strip out all the generated directories and the "*.o" files from the source # release -@allfiles = grep(!/^.*\.o$/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepages/, @allfiles); +@allfiles = grep(!/^.*\.o$/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepages/ & !/^packaging\/SGI\/swat/, @allfiles); open(IDB,">samba.idb") || die "Unable to open samba.idb for output\n"; @@ -95,6 +100,9 @@ while(@bins) { elsif ($nextfile eq "findsmb") { print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n"; } + elsif ($nextfile eq "swat") { + print IDB "f 4755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n"; + } elsif ($nextfile eq "sambalp") { print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n"; } @@ -132,7 +140,7 @@ 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 exitop(/usr/samba/mkprintcap.sh) removeop(rm /usr/samba/printcap)\n"; +print IDB "f 0755 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base print IDB "d 0755 root sys usr/samba/src packaging/SGI samba.src.samba\n"; while (@allfiles) { @@ -155,6 +163,20 @@ while (@allfiles) { } } +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\///; + next if !$file; + if (grep(/\/$/,$file)) { + chop $file; + print IDB "d 0755 root sys usr/samba/swat/$file packaging/SGI/swat/$file samba.sw.base\n"; + } + else { + print IDB "f 0444 root sys usr/samba/swat/$file packaging/SGI/swat/$file 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"; -- cgit