[clbuild-devel] *.asd file

Ben Hyde bhyde at pobox.com
Fri Nov 28 15:34:52 UTC 2008


On Nov 26, 2008, at 10:23 AM, Ebzzry wrote:
> Hi! I'm wondering why is there a "*.asd" file that's always  
> persistently
> present in the "systems" directory that points to
> ${InstallDir}/clbuild/source/cells-gtk/*/*.asd?
> A `clbuild clean-links' in turn deletes it.
>
> What is that file for? Is it there for a specific purpose? Is it  
> vestigial?
> Is it negligible?

It is a confusing but harmless bug.

I believe this patch will fix the source.  No doubt there are more  
elegant
ways to do this.  Reviews the other globbing is left as an exercise.

bash-3.2$ darcs diff -u clbuild
--- old-clbuild/clbuild	2008-11-28 10:28:44.000000000 -0500
+++ new-clbuild/clbuild	2008-11-28 10:28:44.000000000 -0500
@@ -672,7 +672,12 @@
  		echo "resume: skipping update of $project"
  	    else
  		${UPDATE_SCRIPT} ${UPDATE_ARGS} $project
-		ln -f -s $(pwd)/${project}*/*.asd "${system_dir}"/
+                for i in $(pwd)/${project}*/*.asd ; do
+                    # see nullglob etc in bash manual
+                    if [ -f "$i" ] ; then
+                        ln -f -s "$i" "${system_dir}"/
+                    fi
+                done
  		touch "$skipfile"
  	    fi
  	done

bash-3.2$ 




More information about the clbuild-devel mailing list