
Similar to the preceding commit, also extract the script to generate the "gitweb.js" file. While the logic itself is trivial, it helps us avoid duplication of logic across build systems and ensures that the build systems will remain in sync with each other in case the logic ever needs to change. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
13 lines
128 B
Bash
Executable File
13 lines
128 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if test "$#" -lt 2
|
|
then
|
|
echo >&2 "USAGE: $0 <OUTPUT> <INPUT>..."
|
|
exit 1
|
|
fi
|
|
|
|
OUTPUT="$1"
|
|
shift
|
|
|
|
cat "$@" >"$OUTPUT"
|