1
0
Fork 0
js-utils/scripts/project-update.sh

16 lines
363 B
Bash
Raw Normal View History

#! /bin/bash
set -x
PROJECT_NAME="${1}"
echo "Updating project: ${PROJECT_NAME}"
git ls-tree -r HEAD --name-only | rsync -avh \
--files-from=- \
--exclude-from=./scripts/project-exclude \
--exclude-from=./scripts/project-newonly \
./ "${PROJECT_NAME}"
rsync -avh \
--files-from=./scripts/project-newonly \
--ignore-existing \
./ "${PROJECT_NAME}"