diff options
Diffstat (limited to 'apps/plugins/puzzles/resync.sh')
-rwxr-xr-x | apps/plugins/puzzles/resync.sh | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/apps/plugins/puzzles/resync.sh b/apps/plugins/puzzles/resync.sh index 7c2df45c7e..3431a6f695 100755 --- a/apps/plugins/puzzles/resync.sh +++ b/apps/plugins/puzzles/resync.sh | |||
@@ -30,8 +30,8 @@ then | |||
30 | echo "[1/5] Removing current src/ directory" | 30 | echo "[1/5] Removing current src/ directory" |
31 | rm -rf src | 31 | rm -rf src |
32 | echo "[2/5] Copying new sources" | 32 | echo "[2/5] Copying new sources" |
33 | mkdir src | 33 | mkdir -p src/unfinished |
34 | cp -r "$1"/{*.h,puzzles.but,LICENCE,README,CMakeLists.txt} src | 34 | cp -r "$1"/{*.h,puzzles.but,LICENCE,README,CMakeLists.txt,unfinished} src |
35 | 35 | ||
36 | # Parse out definitions of core, core_obj, and common from | 36 | # Parse out definitions of core, core_obj, and common from |
37 | # CMakeLists. Extract the .c filenames, except malloc.c, and store | 37 | # CMakeLists. Extract the .c filenames, except malloc.c, and store |
@@ -46,17 +46,12 @@ then | |||
46 | SRC="$(cat SOURCES.games SOURCES.core | sed 's/src\///' | tr '\n' ' ' | head -c-1) loopy.c pearl.c solo.c" | 46 | SRC="$(cat SOURCES.games SOURCES.core | sed 's/src\///' | tr '\n' ' ' | head -c-1) loopy.c pearl.c solo.c" |
47 | echo "Detected sources:" $SRC | 47 | echo "Detected sources:" $SRC |
48 | pushd "$1" > /dev/null | 48 | pushd "$1" > /dev/null |
49 | cp $SRC "$ROOT"/src | 49 | cp -r $SRC "$ROOT"/src |
50 | popd > /dev/null | 50 | popd > /dev/null |
51 | 51 | ||
52 | cat <<EOF >> SOURCES.games | 52 | cat src/unfinished/CMakeLists.txt | awk '/puzzle\(/{p=1} p{print} /\)/{p=0}' | grep -Eo "\(.*$" | tr -dc "a-z\n" | awk '{print "src/unfinished/"$0".c"}' | grep -v "group" | grep -v "separate" >> SOURCES.games |
53 | 53 | ||
54 | /* Disabled for now. Fix puzzles.make and CATEGORIES to accomodate these. */ | 54 | cat <<EOF >> SOURCES.games |
55 | /* The help system would also need to be patched to compile these. */ | ||
56 | /*src/unfinished/group.c*/ | ||
57 | /*src/unfinished/separate.c*/ | ||
58 | /*src/unfinished/slide.c*/ | ||
59 | /*src/unfinished/sokoban.c*/ | ||
60 | 55 | ||
61 | /* no c200v2 */ | 56 | /* no c200v2 */ |
62 | #if PLUGIN_BUFFER_SIZE > 0x14000 | 57 | #if PLUGIN_BUFFER_SIZE > 0x14000 |