summaryrefslogtreecommitdiffstats
path: root/core/modules/slx-issue/module.build
blob: f9ee3f20bb3b1778a846cfc7683aadbf78af10c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
fetch_source() {
	:
}

build() {
	:
}

post_copy() {
	# Create issue.template
	local DIST=$(lsb_release -sd)
	local GITC=$(git rev-parse --short HEAD)
	local DATE=$(date "+%Y-%m-%d")
	local VERSION=$(echo "bwLehrpool/$DIST   $DATE/$GITC" | escape_replace)
	mkdir -p "$TARGET_BUILD_DIR/opt/openslx/etc"
	sed "s/%version%/$VERSION/g" "$MODULE_DIR/templates/issue.template" > "$TARGET_BUILD_DIR/opt/openslx/etc/issue.template" || perror "Could not create issue template"

}