summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2013-06-23 10:01:24 (GMT)
committer Mario Fetka <[email protected]>2013-06-23 10:01:24 (GMT)
commit446225ae59cb2c846e4d5598a8b433ed006040ea (patch)
tree833a12fe867b772917ebf98c00294e56fee28aea
parent0e1aed0a370a99806f9eb639fc43704a192f23e7 (diff)
set exec bit on executables
-rw-r--r--lib/builder-targets.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh
index b4e9c84..004e25e 100644
--- a/lib/builder-targets.sh
+++ b/lib/builder-targets.sh
@@ -233,6 +233,9 @@ builder_create() {
# convert to dos file linefeed
find $INST_DIR/CLIENT_DATA -type f | xargs -n1 -iREP sh -c 'file -i $0 | grep -v "utf-16" | grep "text/plain" && '$CMD_unix2dos' $0 ' REP >/dev/null
+ # set exec bit on executeables
+ find $INST_DIR/CLIENT_DATA -type f -iname "*.exe" -o -iname "*.bat" -o -iname "*.cmd" -o -iname "*.msi" -o -iname "*.msp" | xargs chmod +x -v
+
# replace variables from file OPSI/control
local release_new=${CREATOR_TAG}${RELEASE}
# sed -e "s!VERSION!$VERSION!g" -e "s!RELEASE!${release_new}!g" -e "s!PRIORITY!$PRIORITY!g" -e "s!ADVICE!$ADVICE!g" ${PRODUCT_DIR}/OPSI/control >$INST_DIR/OPSI/control
@@ -346,6 +349,7 @@ builder_publish() {
${CMD_gpg} --batch --passphrase ${GPG_PASSPHRASE} --output "${dst}.opsi.gpg" --detach-sig "${src}.opsi"
builder_check_error "Can't create gpg file"
fi
+
# Create revision file for this
local rev_file=${OPSI_REPOS_PRODUCT_DIR}/${PN}-${VERSION}-${CREATOR_TAG}${RELEASE}.cfg
cat > $rev_file <<EOF

Powered by Domaintechnik.at | Hosting - Domain - Webspace