| OLD | NEW |
| 1 # Recursively replace @@include@@ template variables with the referenced file, | 1 # Recursively replace @@include@@ template variables with the referenced file, |
| 2 # and write the resulting text to stdout. | 2 # and write the resulting text to stdout. |
| 3 process_template_includes() { | 3 process_template_includes() { |
| 4 INCSTACK+="$1->" | 4 INCSTACK+="$1->" |
| 5 # Includes are relative to the file that does the include. | 5 # Includes are relative to the file that does the include. |
| 6 INCDIR=$(dirname $1) | 6 INCDIR=$(dirname $1) |
| 7 # Clear IFS so 'read' doesn't trim whitespace | 7 # Clear IFS so 'read' doesn't trim whitespace |
| 8 local OLDIFS="$IFS" | 8 local OLDIFS="$IFS" |
| 9 IFS='' | 9 IFS='' |
| 10 while read -r LINE | 10 while read -r LINE |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 -e "s#@@PRODUCTURL@@#${PRODUCTURL}#g" \ | 66 -e "s#@@PRODUCTURL@@#${PRODUCTURL}#g" \ |
| 67 -e "s#@@PREDEPENDS@@#${PREDEPENDS}#g" \ | 67 -e "s#@@PREDEPENDS@@#${PREDEPENDS}#g" \ |
| 68 -e "s#@@DEPENDS@@#${DEPENDS}#g" \ | 68 -e "s#@@DEPENDS@@#${DEPENDS}#g" \ |
| 69 -e "s#@@PROVIDES@@#${PROVIDES}#g" \ | 69 -e "s#@@PROVIDES@@#${PROVIDES}#g" \ |
| 70 -e "s#@@REPLACES@@#${REPLACES}#g" \ | 70 -e "s#@@REPLACES@@#${REPLACES}#g" \ |
| 71 -e "s#@@CONFLICTS@@#${CONFLICTS}#g" \ | 71 -e "s#@@CONFLICTS@@#${CONFLICTS}#g" \ |
| 72 -e "s#@@ARCHITECTURE@@#${ARCHITECTURE}#g" \ | 72 -e "s#@@ARCHITECTURE@@#${ARCHITECTURE}#g" \ |
| 73 -e "s#@@MAINTNAME@@#${MAINTNAME}#g" \ | 73 -e "s#@@MAINTNAME@@#${MAINTNAME}#g" \ |
| 74 -e "s#@@MAINTMAIL@@#${MAINTMAIL}#g" \ | 74 -e "s#@@MAINTMAIL@@#${MAINTMAIL}#g" \ |
| 75 -e "s#@@REPOCONFIG@@#${REPOCONFIG}#g" \ | 75 -e "s#@@REPOCONFIG@@#${REPOCONFIG}#g" \ |
| 76 -e "s#@@SSLREPOCONFIG@@#${SSLREPOCONFIG}#g" \ |
| 76 -e "s#@@SHORTDESC@@#${SHORTDESC}#g" \ | 77 -e "s#@@SHORTDESC@@#${SHORTDESC}#g" \ |
| 77 -e "s#@@FULLDESC@@#${FULLDESC}#g" \ | 78 -e "s#@@FULLDESC@@#${FULLDESC}#g" \ |
| 78 -e "s#@@DEFAULT_FLAGS@@#${DEFAULT_FLAGS:-}#g" \ | 79 -e "s#@@DEFAULT_FLAGS@@#${DEFAULT_FLAGS:-}#g" \ |
| 79 -e "s#@@SXS_USER_DATA_DIR@@#${SXS_USER_DATA_DIR:-}#g" \ | 80 -e "s#@@SXS_USER_DATA_DIR@@#${SXS_USER_DATA_DIR:-}#g" \ |
| 80 -e "s#@@USR_BIN_SYMLINK_NAME@@#${USR_BIN_SYMLINK_NAME:-}#g" \ | 81 -e "s#@@USR_BIN_SYMLINK_NAME@@#${USR_BIN_SYMLINK_NAME:-}#g" \ |
| 81 > "$TMPLOUT" <<< "$TMPLINCL" | 82 > "$TMPLOUT" <<< "$TMPLINCL" |
| 82 ) | 83 ) |
| 83 | 84 |
| 84 # Setup the installation directory hierachy in the package staging area. | 85 # Setup the installation directory hierachy in the package staging area. |
| 85 prep_staging_common() { | 86 prep_staging_common() { |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml" | 248 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.xml" |
| 248 chmod 644 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.
xml" | 249 chmod 644 "${STAGEDIR}/usr/share/gnome-control-center/default-apps/${PACKAGE}.
xml" |
| 249 process_template "${BUILDDIR}/installer/common/default-app-block.template" \ | 250 process_template "${BUILDDIR}/installer/common/default-app-block.template" \ |
| 250 "${STAGEDIR}${INSTALLDIR}/default-app-block" | 251 "${STAGEDIR}${INSTALLDIR}/default-app-block" |
| 251 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block" | 252 chmod 644 "${STAGEDIR}${INSTALLDIR}/default-app-block" |
| 252 | 253 |
| 253 # documentation | 254 # documentation |
| 254 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \ | 255 install -m 755 "${BUILDDIR}/${PROGNAME}.1" \ |
| 255 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1" | 256 "${STAGEDIR}/usr/share/man/man1/${PACKAGE}.1" |
| 256 } | 257 } |
| OLD | NEW |