angular-cn/scripts/windows/create-symlinks.sh

12 lines
332 B
Bash
Raw Normal View History

#!/usr/bin/env bash
cd `dirname $0`
while read RAW_PACKAGE || [[ -n "$RAW_PACKAGE" ]]
do
PACKAGE=${RAW_PACKAGE%$'\r'}
DESTDIR=./../../modules/\@angular/${PACKAGE}
mv ${DESTDIR}/facade ${DESTDIR}/facade.old
cmd <<< "mklink \"..\\..\\modules\\\@angular\\"${PACKAGE}"\\facade\" \"..\\..\\facade\\src\\\""
done < packages.txt