blob: 89a56b6dae2690b9106cb55cd64ccedcde868eb3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
fetch_source() {
git clone "${REQUIRED_GIT}" "${MODULE_WORK_DIR}/src"
}
build() {
local SRCDIR="${MODULE_WORK_DIR}/src/"
mkdir -p "${MODULE_BUILD_DIR}/${REQUIRED_PREFIX}"
cd "${MODULE_BUILD_DIR}/${REQUIRED_PREFIX}" || perror "No dir"
pinfo "Running cmake"
cmake "$SRCDIR" || perror "'cmake $SRCDIR' failed."
make || perror "'make' failed."
local COPYLIST="$MODULE_BUILD_DIR/list_packet_files"
list_packet_files | sort -u > "$COPYLIST"
tarcopy "$(cat "$COPYLIST")" "${MODULE_BUILD_DIR}"
cd - > /dev/null
}
post_copy() {
:
}
|