tests/test-quantize-fns.cpp \
tests/test-quantize-perf.cpp \
tests/test-backend-ops.cpp \
+ LICENSE \
+ scripts/gen-authors.sh \
>> $SRC_GGML/llama-src.patch
done < $SRC_GGML/llama-commits
# tests/test-quantize-fns.cpp -> tests/test-quantize-fns.cpp
# tests/test-quantize-perf.cpp -> tests/test-quantize-perf.cpp
# tests/test-backend-ops.cpp -> tests/test-backend-ops.cpp
+ #
+ # LICENSE -> LICENSE
+ # scripts/gen-authors.sh -> scripts/gen-authors.sh
cat llama-src.patch | sed \
-e 's/\/ggml\.c/\/src\/ggml.c/g' \
-e 's/\/tests\/test-quantize-fns\.cpp/\/tests\/test-quantize-fns.cpp/g' \
-e 's/\/tests\/test-quantize-perf\.cpp/\/tests\/test-quantize-perf.cpp/g' \
-e 's/\/tests\/test-backend-ops\.cpp/\/tests\/test-backend-ops.cpp/g' \
+ -e 's/\/LICENSE/\/LICENSE/g' \
+ -e 's/\/scripts\/gen-authors\.sh/\/scripts\/gen-authors.sh/g' \
> llama-src.patch.tmp
mv llama-src.patch.tmp llama-src.patch
cp -rpv ../llama.cpp/tests/test-quantize-fns.cpp tests/test-quantize-fns.cpp
cp -rpv ../llama.cpp/tests/test-quantize-perf.cpp tests/test-quantize-perf.cpp
cp -rpv ../llama.cpp/tests/test-backend-ops.cpp tests/test-backend-ops.cpp
+
+cp -rpv ../llama.cpp/LICENSE ./LICENSE
+cp -rpv ../llama.cpp/scripts/gen-authors.sh ./scripts/gen-authors.sh
examples/grammar-parser.cpp \
examples/main/main.cpp \
examples/quantize/quantize.cpp \
+ LICENSE \
+ scripts/gen-authors.sh \
>> $SRC_GGML/whisper-src.patch
done < $SRC_GGML/whisper-commits
# examples/grammar-parser.cpp -> examples/whisper/grammar-parser.cpp
# examples/main/main.cpp -> examples/whisper/main.cpp
# examples/quantize/quantize.cpp -> examples/whisper/quantize.cpp
+ #
+ # LICENSE -> LICENSE
+ # scripts/gen-authors.sh -> scripts/gen-authors.sh
cat whisper-src.patch | sed \
-e 's/\/ggml\.c/\/src\/ggml.c/g' \
-e 's/\/examples\/grammar-parser\.cpp/\/examples\/whisper\/grammar-parser.cpp/g' \
-e 's/\/examples\/main\/main\.cpp/\/examples\/whisper\/main.cpp/g' \
-e 's/\/examples\/quantize\/quantize\.cpp/\/examples\/whisper\/quantize.cpp/g' \
+ -e 's/\/LICENSE/\/LICENSE/g' \
+ -e 's/\/scripts\/gen-authors\.sh/\/scripts\/gen-authors.sh/g' \
> whisper-src.patch.tmp
mv whisper-src.patch.tmp whisper-src.patch
cp -rpv ../whisper.cpp/whisper.cpp examples/whisper/whisper.cpp
cp -rpv ../whisper.cpp/examples/main/main.cpp examples/whisper/main.cpp
cp -rpv ../whisper.cpp/examples/quantize/quantize.cpp examples/whisper/quantize.cpp
+
+cp -rpv ../whisper.cpp/LICENSE ./LICENSE
+cp -rpv ../whisper.cpp/scripts/gen-authors.sh ./scripts/gen-authors.sh