From 20bf8e729763e0ffbbf5844715921d0ba8fcc755 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Wed, 21 Jan 2009 20:14:31 +0000 Subject: [PATCH] Make it possible to turn auto_dir off. This is necessary until a good solution can be found so that auto_dir can automatically ignore "system" paths like /etc and /usr. --- buildpkg.packaging.irix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/buildpkg.packaging.irix b/buildpkg.packaging.irix index 8cb953c..8dbe9c7 100644 --- a/buildpkg.packaging.irix +++ b/buildpkg.packaging.irix @@ -64,6 +64,7 @@ usedepend=1 # Don't use depend file even if it's available usescripts=1 # Don't add ops even if they're available ignore_unpackaged_files=0 # default to check for unpackaged files in the stage area include_source=0 # Include source[x] in the opt.src subsystem and not just patch[x] +useautodir=1 # Enable or disable the auto_dir run # vendor & contact information to be added in relnotes pkgedby="Tom G. Christensen" @@ -694,10 +695,12 @@ create_idb() # Go through each subsys and add any missing dir entries # This must go here, after the idb file is created and before # doing the final sort on the idb file. - for temp in $(${__awk} '{ print $7 }' $idbfile | ${__sort} -u) - do - auto_dir $temp - done + if [ $useautodir -eq 1 ]; then + for temp in $(${__awk} '{ print $7 }' $idbfile | ${__sort} -u) + do + auto_dir $temp + done + fi ${__sort} +4u -6 < $idbfile > $metadir/idbtemp lines=$(wc -l < $metadir/idbtemp)