You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
505 B
22 lines
505 B
#!/bin/bash -x
|
|
|
|
# $1 Path to the new version.
|
|
# $2 Path to the old version.
|
|
|
|
# We only want a few files from the archive, so delete any files that weren't
|
|
# in the old version. Start with deleting whole directories first.
|
|
find $1 -maxdepth 1 -type d -printf "%P\n" | while read f; do
|
|
if [ ! -d "$2/$f" ]; then
|
|
rm -rf $1/$f
|
|
fi
|
|
done
|
|
|
|
find $1 -printf "%P\n" | while read f; do
|
|
if [ ! -e "$2/$f" ]; then
|
|
rm -rf $1/$f
|
|
fi
|
|
done
|
|
|
|
# Copy over the android directory
|
|
cp -r $2/android $1/android
|