2020-10-27 12:23:58 +08:00
|
|
|
redo-ifchange long.txt short.txt gitcommit.txt extragitcommit.txt ver.go.in
|
2020-02-06 06:16:58 +08:00
|
|
|
|
|
|
|
read -r LONGVER <long.txt
|
|
|
|
read -r SHORTVER <short.txt
|
2020-10-27 12:23:58 +08:00
|
|
|
read -r GITCOMMIT <gitcommit.txt
|
|
|
|
read -r EXTRAGITCOMMIT <extragitcommit.txt
|
2020-02-06 06:16:58 +08:00
|
|
|
|
|
|
|
sed -e "s/{LONGVER}/$LONGVER/g" \
|
|
|
|
-e "s/{SHORTVER}/$SHORTVER/g" \
|
2020-10-27 12:23:58 +08:00
|
|
|
-e "s/{GITCOMMIT}/$GITCOMMIT/g" \
|
|
|
|
-e "s/{EXTRAGITCOMMIT}/$EXTRAGITCOMMIT/g" \
|
2020-02-06 06:16:58 +08:00
|
|
|
<ver.go.in >$3
|