Create a symlink named "bin" in the dist/mozilla directory and then run pkgcp.pl using dist/mozilla as the srcdir. This will let us avoid accidentally stripping the files in dist/bin.

Thanks to Brian Ryner <bryner@netscape.com> for the patch.
Bug #156983 r=sgehani sr=leaf


git-svn-id: svn://10.0.0.236/trunk@125053 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
seawood%netscape.com 2002-07-12 00:37:46 +00:00
parent 459e27115c
commit 39c72e94a1

View File

@ -116,9 +116,13 @@ spew("Completed delivering wizard");
#-------------------------------------------------------------------------
# Make .xpis
#-------------------------------------------------------------------------
#// create a "bin" symlink in $TREETOP/dist/mozilla that points to ".".
#// this ensures that binaries in dist/bin remain unstripped.
symlink(".", "$TREETOP/dist/mozilla/bin");
#// call pkgcp.pl
chdir("$TREETOP/xpinstall/packager");
system("perl pkgcp.pl -o unix -s $TREETOP/dist -d $STAGE -f $TREETOP/xpinstall/packager/packages-unix -v");
system("perl pkgcp.pl -o unix -s $TREETOP/dist/mozilla -d $STAGE -f $TREETOP/xpinstall/packager/packages-unix -v");
spew("Completed copying build files");
#// call xptlink.pl to make big .xpt files/component
@ -131,6 +135,8 @@ system("perl makeall.pl $aVersion $aURLPath $STAGE $XPI");
system("mv $TREETOP/xpinstall/packager/unix/config.ini $RAW");
spew("Completed making .xpis");
#// clean up our symlink
unlink("$TREETOP/dist/mozilla/bin");
#-------------------------------------------------------------------------
# Package stub and sea