Skip to content

Commit b5b5973

Browse files
committed
[build] packdist.sh tweaks of convenience commands
1 parent 452af64 commit b5b5973

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packdist.sh

+8-6
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,12 @@ escprevversion=$(printf "%s" "${prevversion}" | sed 's/\./[.]/g')
268268
escversion=$(printf "%s" "${version}" | sed 's/\./[.]/g')
269269
nextversion="${version%.*}.$((${version##*.} + 1))"
270270
echo cd distbuild
271-
echo scp "${name}.{tar*,sha256sum}" lighttpd.net:
272-
echo ssh lighttpd.net -c \""cp ${name}.{tar*,sha256sum} download/lighttpd/releases-1.4.x/"\"
273-
echo ssh lighttpd.net -c \""mv ${name}.{tar*,sha256sum} archive/"\"
274-
echo ssh lighttpd.net -c \""sed -i -e 's/${escprevversion}/${version}/g' download/lighttpd/README.txt"\"
275-
echo ssh lighttpd.net -c \""echo lighttpd-${version} > download/lighttpd/releases-1.4.x/latest.txt"\"
271+
echo scp "${name}.{tar*,sha*sum}" lighttpd.net:
272+
echo ssh lighttpd.net \""cp ${name}.{tar*,sha*sum} download/lighttpd/releases-1.4.x/"\"
273+
echo ssh lighttpd.net \""mv ${name}.{tar*,sha*sum} archive/"\"
274+
# (not using 'sed -i' due to dir permissions)
275+
echo ssh lighttpd.net \""sed -e 's/${escprevversion}/${version}/g' download/lighttpd/README.txt > README.txt.\\\$\\\$ && cat README.txt.\\\$\\\$ > download/lighttpd/README.txt && rm README.txt.\\\$\\\$"\"
276+
echo ssh lighttpd.net \""echo lighttpd-${version} > download/lighttpd/releases-1.4.x/latest.txt"\"
276277
echo
277278
echo mkdir dl
278279
echo cd dl
@@ -283,4 +284,5 @@ echo
283284
echo cd "${self}"
284285
echo sed -i -e "'s/${escversion}/${nextversion}/g'" CMakeLists.txt SConstruct configure.ac meson.build
285286
echo git commit -m "'- next is ${nextversion}'" CMakeLists.txt SConstruct configure.ac meson.build
286-
echo git push origin "${name}" master
287+
echo git push origin master
288+
echo git push origin "${name}"

0 commit comments

Comments
 (0)