@@ -494,7 +494,7 @@ function publish( pkg, clbk ) {
494
494
'sed -i \'s/^\\*//\' LICENSE.tmp' ,
495
495
'' ,
496
496
'# Check whether LICENSE.tmp is empty:' ,
497
- 'if [ ! -s LICENSE.tmp ]; then' ,
497
+ 'if [ -s LICENSE.tmp ]; then' ,
498
498
'' ,
499
499
' # Attach attribution notice to LICENSE file:' ,
500
500
' cat ' + dist + '/LICENSE ' + join ( __dirname , 'templates' , 'license_attribution.txt' ) + ' LICENSE.tmp > LICENSE.out' ,
@@ -517,8 +517,8 @@ function publish( pkg, clbk ) {
517
517
' sed -i \'s/Copyright (c) 2015: Dahua Lin./\\* StatsFuns.jl <https:\\/\\/raw.githubusercontent.com\\/JuliaStats\\/StatsFuns.jl\\/\ne66dd973650c375bc1739c820e5b96bb5bd000a8\\/LICENSE.md>\n\nCopyright (c) 2015: Dahua Lin./\' LICENSE.out' ,
518
518
' sed -i \'s/Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura/\\* MT19937 <http:\\/\\/www.math.sci.hiroshima-u.ac.jp\\/~m-mat\\/MT\\/MT2002\\/CODES\\/mt19937ar.c>\n\nCopyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura/\' LICENSE.out' ,
519
519
'' ,
520
- '# Move LICENSE.out to LICENSE:' ,
521
- 'mv LICENSE.out ' + dist + 'LICENSE' ,
520
+ ' # Move LICENSE.out to LICENSE:' ,
521
+ ' mv LICENSE.out ' + dist + '/ LICENSE' ,
522
522
'' ,
523
523
' # Remove temporary file:' ,
524
524
' rm LICENSE.tmp LICENSE.out' ,
0 commit comments