copy_surface_files.sh

#!/bin/bash


PREFIX_2_3="/ti/android-2.3/TI_Android_GingerBread_2_3_Sources/"
PREFIX_2_3_4="/ti/android-2.3.4/TI_Android_GingerBread_2_3_4_Sources/"


DEST_FOLDER="/shared/surface_comp/"


SURFACE_FILES=(\
frameworks/base/core/java/android/app/ActivityThread.java \
frameworks/base/core/java/android/app/Activity.java \
frameworks/base/core/java/android/app/Instrumentation.java \
frameworks/base/core/java/com/android/internal/policy/PolicyManager.java \
frameworks/base/policy/src/com/android/internal/policy/impl/Policy.java \
frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindow.java \
frameworks/base/core/java/android/view/Window.java \
frameworks/base/core/java/android/view/WindowManagerImpl.java \
frameworks/base/core/java/android/view/ViewRoot.java \
frameworks/base/core/java/android/view/Surface.java \
frameworks/base/services/java/com/android/server/WindowManagerService.java \
frameworks/base/core/java/android/view/IWindowSession.aidl \
frameworks/base/core/java/android/view/IWindow.aidl \
frameworks/base/core/java/android/view/SurfaceSession.java \
frameworks/base/core/jni/android_view_Surface.cpp \
frameworks/base/libs/surfaceflinger_client/SurfaceComposerClient.cpp \
frameworks/base/services/surfaceflinger/SurfaceFlinger.cpp \
frameworks/base/include/surfaceflinger/ISurfaceComposer.h \
frameworks/base/services/surfaceflinger/Layer.h \
frameworks/base/services/surfaceflinger/Layer.cpp \
frameworks/base/services/surfaceflinger/LayerBase.cpp \
frameworks/base/libs/surfaceflinger_client/Surface.cpp \
frameworks/base/libs/surfaceflinger_client/SharedBufferStack.cpp \
frameworks/base/include/ui/GraphicBuffer.h \
frameworks/base/libs/ui/GraphicBuffer.cpp \
frameworks/base/include/ui/GraphicBufferAllocator.h \
frameworks/base/libs/ui/GraphicBufferAllocator.cpp \
frameworks/base/libs/ui/GraphicBufferMapper.cpp \
frameworks/base/include/ui/egl/android_natives.h \
frameworks/base/include/ui/android_native_buffer.h \
frameworks/base/libs/surfaceflinger_client/ISurface.cpp \
frameworks/base/services/surfaceflinger/DisplayHardware/DisplayHardware.cpp \
)


for file in "${SURFACE_FILES[@]}"; do
FILE_2_3=$PREFIX_2_3$file
FILE_2_3_4=$PREFIX_2_3_4$file


if [ ! -e $FILE_2_3 ]; then
echo "error "$FILE_2_3" not found."
fi
if [ ! -e $FILE_2_3_4 ]; then
echo "error "$FILE_2_3" not found."
fi




cp $FILE_2_3 $DEST_FOLDER"2_3"
cp $FILE_2_3_4 $DEST_FOLDER"2_3_4"
done

你可能感兴趣的:(android,File)