mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-15 09:40:51 +00:00
21 lines
405 B
Bash
21 lines
405 B
Bash
|
#!/bin/bash
|
||
|
# Copyright 2017-2018 @polkadot/dev authors & contributors
|
||
|
# 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
|
||
|
|
||
|
DIRS=( $(ls -1d *) )
|
||
|
|
||
|
for DIR in "${DIRS[@]}"; do
|
||
|
if [ -d "$DIR" ] && [ -f "$DIR/index.d.ts" ]; then
|
||
|
echo ""
|
||
|
echo "*** Copying $DIR"
|
||
|
|
||
|
cp -r $DIR build/
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
exit 0
|