1 | #!/bin/sh
|
---|
2 |
|
---|
3 | FOLDER='bfs_fuse'
|
---|
4 |
|
---|
5 | mkdir "$FOLDER"
|
---|
6 | cd "$FOLDER"
|
---|
7 | git init
|
---|
8 | git remote add origin git://git.haiku-os.org/haiku
|
---|
9 | git config core.sparsecheckout true
|
---|
10 | # ==============================================================================
|
---|
11 | echo /src/add-ons/kernel/file_systems/bfs/ > .git/info/sparse-checkout # almost all files in this folder are needed (except Jamfile and ToDo)
|
---|
12 | echo /src/add-ons/kernel/file_systems/shared/ >> .git/info/sparse-checkout # all files in this folder are needed
|
---|
13 | echo /src/build/libroot/ >> .git/info/sparse-checkout # almost all files in this folder are needed (except fs_attr_bsdxattr.h fs_attr_untyped.cpp fs_freebsd.cpp fs_attr_extattr.h fs_attr_xattr.h fs_freebsd.h)
|
---|
14 | echo /src/tools/bfs_shell/ >> .git/info/sparse-checkout # all files in this folder are needed (contains only Jamfile)
|
---|
15 | echo /src/tools/fs_shell/ >> .git/info/sparse-checkout # almost all files in this folder are needed (except external_commands_beos.cpp fs_shell_command_beos.h fs_shell_command_unix.cpp fssh.cpp fs_shell_command.cpp fs_shell_command_beos.cpp fs_shell_command.h)
|
---|
16 |
|
---|
17 | echo /src/system/kernel/cache/file_map.cpp >> .git/info/sparse-checkout
|
---|
18 | echo /src/system/kernel/fs/rootfs.cpp >> .git/info/sparse-checkout
|
---|
19 | echo /src/system/kernel/messaging/KMessage.cpp >> .git/info/sparse-checkout
|
---|
20 | echo /src/system/libroot/os/driver_settings.cpp >> .git/info/sparse-checkout
|
---|
21 | echo /src/system/libroot/posix/string/strlcat.c >> .git/info/sparse-checkout
|
---|
22 | echo /src/system/libroot/posix/string/strlcpy.c >> .git/info/sparse-checkout
|
---|
23 | echo /src/system/libroot/posix/string/strnlen.cpp >> .git/info/sparse-checkout
|
---|
24 | # ==============================================================================
|
---|
25 | echo /headers/build/config_build/ >> .git/info/sparse-checkout # all files in this folder are needed
|
---|
26 | echo /headers/build/os/kernel/ >> .git/info/sparse-checkout # almost all files in this folder are needed (except fs_info.h)
|
---|
27 | echo /headers/private/fs_shell/ >> .git/info/sparse-checkout # all files in this folder are needed
|
---|
28 |
|
---|
29 | echo /headers/build/BeOSBuildCompatibility.h >> .git/info/sparse-checkout
|
---|
30 | echo /headers/build/HaikuBuildCompatibility.h >> .git/info/sparse-checkout
|
---|
31 | echo /headers/build/os/BeBuild.h >> .git/info/sparse-checkout
|
---|
32 | echo /headers/build/os/app/AppDefs.h >> .git/info/sparse-checkout
|
---|
33 | echo /headers/build/os/app/Message.h >> .git/info/sparse-checkout
|
---|
34 | echo /headers/build/os/app/Messenger.h >> .git/info/sparse-checkout
|
---|
35 | echo /headers/build/os/drivers/driver_settings.h >> .git/info/sparse-checkout
|
---|
36 | echo /headers/build/os/drivers/KernelExport.h >> .git/info/sparse-checkout
|
---|
37 | echo /headers/build/os/interface/Point.h >> .git/info/sparse-checkout
|
---|
38 | echo /headers/build/os/interface/Rect.h >> .git/info/sparse-checkout
|
---|
39 | echo /headers/build/os/interface/Size.h >> .git/info/sparse-checkout
|
---|
40 | echo /headers/build/os/storage/DiskDeviceDefs.h >> .git/info/sparse-checkout
|
---|
41 | echo /headers/build/os/storage/FindDirectory.h >> .git/info/sparse-checkout
|
---|
42 | echo /headers/build/os/storage/Node.h >> .git/info/sparse-checkout
|
---|
43 | echo /headers/build/os/storage/NodeMonitor.h >> .git/info/sparse-checkout
|
---|
44 | echo /headers/build/os/storage/Statable.h >> .git/info/sparse-checkout
|
---|
45 | echo /headers/build/os/storage/StorageDefs.h >> .git/info/sparse-checkout
|
---|
46 | echo /headers/build/os/support/ByteOrder.h >> .git/info/sparse-checkout
|
---|
47 | echo /headers/build/os/support/DataIO.h >> .git/info/sparse-checkout
|
---|
48 | echo /headers/build/os/support/Debug.h >> .git/info/sparse-checkout
|
---|
49 | echo /headers/build/os/support/Errors.h >> .git/info/sparse-checkout
|
---|
50 | echo /headers/build/os/support/Flattenable.h >> .git/info/sparse-checkout
|
---|
51 | echo /headers/build/os/support/SupportDefs.h >> .git/info/sparse-checkout
|
---|
52 | echo /headers/build/os/support/TypeConstants.h >> .git/info/sparse-checkout
|
---|
53 | echo /headers/build/private/kernel/syscalls.h >> .git/info/sparse-checkout
|
---|
54 | echo /headers/build/private/kernel/util/KMessage.h >> .git/info/sparse-checkout
|
---|
55 | echo /headers/build/private/system/directories.h >> .git/info/sparse-checkout
|
---|
56 | echo /headers/build/private/system/find_directory_private.h >> .git/info/sparse-checkout
|
---|
57 | echo /headers/os/app/AppDefs.h >> .git/info/sparse-checkout
|
---|
58 | echo /headers/os/interface/Point.h >> .git/info/sparse-checkout
|
---|
59 | echo /headers/os/interface/Rect.h >> .git/info/sparse-checkout
|
---|
60 | echo /headers/os/interface/Size.h >> .git/info/sparse-checkout
|
---|
61 | echo /headers/os/kernel/OS.h >> .git/info/sparse-checkout
|
---|
62 | echo /headers/os/storage/DiskDeviceDefs.h >> .git/info/sparse-checkout
|
---|
63 | echo /headers/os/storage/FindDirectory.h >> .git/info/sparse-checkout
|
---|
64 | echo /headers/os/storage/NodeMonitor.h >> .git/info/sparse-checkout
|
---|
65 | echo /headers/os/storage/StorageDefs.h >> .git/info/sparse-checkout
|
---|
66 | echo /headers/os/support/ByteOrder.h >> .git/info/sparse-checkout
|
---|
67 | echo /headers/os/support/DataIO.h >> .git/info/sparse-checkout
|
---|
68 | echo /headers/os/support/Debug.h >> .git/info/sparse-checkout
|
---|
69 | echo /headers/os/support/Flattenable.h >> .git/info/sparse-checkout
|
---|
70 | echo /headers/os/support/SupportDefs.h >> .git/info/sparse-checkout
|
---|
71 | echo /headers/os/support/TypeConstants.h >> .git/info/sparse-checkout
|
---|
72 | echo /headers/private/file_systems/QueryParser.h >> .git/info/sparse-checkout
|
---|
73 | echo /headers/private/file_systems/QueryParserUtils.h >> .git/info/sparse-checkout
|
---|
74 | echo /headers/private/kernel/util/KMessage.h >> .git/info/sparse-checkout
|
---|
75 | echo /headers/private/shared/AutoDeleter.h >> .git/info/sparse-checkout
|
---|
76 | echo /headers/private/shared/EntryFilter.h >> .git/info/sparse-checkout
|
---|
77 | echo /headers/private/shared/TypeOperation.h >> .git/info/sparse-checkout
|
---|
78 | echo /headers/private/storage/query_private.h >> .git/info/sparse-checkout
|
---|
79 | echo /headers/private/system/directories.h >> .git/info/sparse-checkout
|
---|
80 | echo /headers/private/system/find_directory_private.h >> .git/info/sparse-checkout
|
---|
81 | # ==============================================================================
|
---|
82 | echo /build/ >> .git/info/sparse-checkout
|
---|
83 |
|
---|
84 | echo /configure >> .git/info/sparse-checkout
|
---|
85 | echo /Jamfile >> .git/info/sparse-checkout
|
---|
86 | echo /Jamrules >> .git/info/sparse-checkout
|
---|
87 | echo /src/Jamfile >> .git/info/sparse-checkout
|
---|
88 | echo /src/build/Jamfile >> .git/info/sparse-checkout
|
---|
89 | echo /src/tools/Jamfile >> .git/info/sparse-checkout
|
---|
90 | # ==============================================================================
|
---|
91 | git pull --no-tags origin HEAD
|
---|
92 | # ==============================================================================
|
---|
93 | ./configure --host-only --target=host
|
---|