tools-systemd: fix the name of the template file
This commit is contained in:
parent
31181682ae
commit
eaabba1bec
1 changed files with 2 additions and 2 deletions
|
@ -16,12 +16,12 @@ prepare_confs() {
|
||||||
local repo_dir="$( cd "$( dirname ${BASH_SOURCE[0]} )../" && pwd )"
|
local repo_dir="$( cd "$( dirname ${BASH_SOURCE[0]} )../" && pwd )"
|
||||||
local template="stage-all.conf.template"
|
local template="stage-all.conf.template"
|
||||||
# set the template file if stage4
|
# set the template file if stage4
|
||||||
[[ $s == 4 ]] && specfile=stage4-amd64.spec
|
[[ $s == 4 ]] && template=stage4-amd64.spec
|
||||||
|
|
||||||
local parch="${arch}"
|
local parch="${arch}"
|
||||||
[[ "${arch}" == "i686" ]] && parch="x86"
|
[[ "${arch}" == "i686" ]] && parch="x86"
|
||||||
|
|
||||||
cat ${specfile} | \
|
cat ${template} | \
|
||||||
sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
|
sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
|
||||||
-e "s:CSTAGE:${cstage}:g" \
|
-e "s:CSTAGE:${cstage}:g" \
|
||||||
-e "s:PSTAGE:${pstage}:g" \
|
-e "s:PSTAGE:${pstage}:g" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue