2018-06-21 09:54:24 +02:00
|
|
|
#!/bin/bash
|
2020-01-06 13:11:28 +01:00
|
|
|
# Copyright 2017-2020 @polkadot/ts authors & contributors
|
2018-06-21 09:54:24 +02:00
|
|
|
# This software may be modified and distributed under the terms
|
|
|
|
# of the ISC license. See the LICENSE file for details.
|
|
|
|
|
|
|
|
rm -rf build
|
|
|
|
mkdir -p build
|
|
|
|
|
2018-06-24 11:18:49 +02:00
|
|
|
cd types
|
2018-06-21 09:54:24 +02:00
|
|
|
DIRS=( $(ls -1d *) )
|
|
|
|
|
|
|
|
for DIR in "${DIRS[@]}"; do
|
|
|
|
if [ -d "$DIR" ] && [ -f "$DIR/index.d.ts" ]; then
|
|
|
|
echo ""
|
|
|
|
echo "*** Copying $DIR"
|
|
|
|
|
2018-06-24 11:18:49 +02:00
|
|
|
cp -r $DIR ../build/
|
2018-06-21 09:54:24 +02:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2018-06-24 11:18:49 +02:00
|
|
|
cd ..
|
2018-06-21 09:54:24 +02:00
|
|
|
exit 0
|