build: ensure necessary symlinks created on windows
Bash scripts create and tear down symlinks on Windows. These use the packages.txt file as input to identify the symlink locations. The scripts ignored the last line in packages.txt if it didn't end with a newline. Also, one location was missing. Resolve both issues. Closes #12422
This commit is contained in:
parent
d520fae70e
commit
a664aba2c9
|
@ -2,9 +2,9 @@
|
|||
|
||||
cd `dirname $0`
|
||||
|
||||
while read RAW_PACKAGE
|
||||
while read RAW_PACKAGE || [[ -n "$RAW_PACKAGE" ]]
|
||||
do
|
||||
PACKAGE=${RAW_PACKAGE: : -1}
|
||||
PACKAGE=${RAW_PACKAGE%$'\r'}
|
||||
DESTDIR=./../../modules/\@angular/${PACKAGE}
|
||||
mv ${DESTDIR}/facade ${DESTDIR}/facade.old
|
||||
cmd <<< "mklink \"..\\..\\modules\\\@angular\\"${PACKAGE}"\\facade\" \"..\\..\\facade\\src\\\""
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
benchpress/src
|
||||
common/src
|
||||
compiler/src
|
||||
compiler/testing
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
cd `dirname $0`
|
||||
|
||||
while read RAW_PACKAGE
|
||||
while read RAW_PACKAGE || [[ -n "$RAW_PACKAGE" ]]
|
||||
do
|
||||
PACKAGE=${RAW_PACKAGE: : -1}
|
||||
PACKAGE=${RAW_PACKAGE%$'\r'}
|
||||
DESTDIR=./../../modules/\@angular/${PACKAGE}
|
||||
rm ${DESTDIR}/facade
|
||||
mv ${DESTDIR}/facade.old ${DESTDIR}/facade
|
||||
|
|
Loading…
Reference in New Issue