comparison packaging/linux-createpackage.sh.in @ 1367:e7a8ec3185f2

Add nosign option to linux-createpackage and use it in create-dist-package This should prevent doubled signatures in distributed packages which were first signed on the development system with the test key and then from the administrator application.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 24 Nov 2014 14:03:47 +0100
parents 014586ef8a84
children
comparison
equal deleted inserted replaced
1366:8c829345ecfa 1367:e7a8ec3185f2
122 cd "$TMPDIR" 122 cd "$TMPDIR"
123 shar -z -B `find -type f` | sed 's/^exit 0//' >>"$TMPSHAR" 123 shar -z -B `find -type f` | sed 's/^exit 0//' >>"$TMPSHAR"
124 124
125 sed -i "/###SHAR###/r $TMPSHAR" "$INSTALLER" 125 sed -i "/###SHAR###/r $TMPSHAR" "$INSTALLER"
126 126
127 echo "Signing" 127 if [ "$2" != "nosign" ]; then
128 "@CMAKE_SOURCE_DIR@/ui/tests/append-sig.sh" \ 128 echo "Signing"
129 "@CMAKE_SOURCE_DIR@/ui/tests/data/codesign/codesigning.key" \ 129 "@CMAKE_SOURCE_DIR@/ui/tests/append-sig.sh" \
130 "$INSTALLER" "${INSTALLER}_signed" 130 "@CMAKE_SOURCE_DIR@/ui/tests/data/codesign/codesigning.key" \
131 mv "${INSTALLER}_signed" "$INSTALLER" 131 "$INSTALLER" "${INSTALLER}_signed"
132 132 mv "${INSTALLER}_signed" "$INSTALLER"
133 else
134 echo "Skipping sign step."
135 fi
133 echo "Cleaning up..." 136 echo "Cleaning up..."
134 rm -r "$TMPDIR" 137 rm -r "$TMPDIR"
135 rm "$TMPSHAR" 138 rm "$TMPSHAR"

http://wald.intevation.org/projects/trustbridge/