+ @for i in $(PACKAGE_SH_SCRIPTS) ""; do \
+ if test "$$i"; then \
+ echo "Creating a configured version of $$i .."; \
+ $(RM) bin/$(platform)/$$i.bak; \
+ if [ -f bin/$(platform)/$$i ]; then $(MV) bin/$(platform)/$$i bin/$(platform)/$$i.bak; fi; \
+ echo "#! $(SH)" > bin/$(platform)/$$i ; \
+ echo "bindir='$(bindir)'" >> bin/$(platform)/$$i ; \
+ echo "libdir='$(libdir)'" >> bin/$(platform)/$$i ; \
+ echo "libexecdir='$(libdir)'" >> bin/$(platform)/$$i ; \
+ echo "datadir='$(datadir)'" >> bin/$(platform)/$$i ; \
+ echo "SED='$(SED)'" >> bin/$(platform)/$$i ; \
+ echo "DEFAULT_TMPDIR='$(DEFAULT_TMPDIR)'" >> bin/$(platform)/$$i ; \
+ cat bin/$(platform)/$$i.sh >> bin/$(platform)/$$i; \
+ $(CHMOD) $(BIN_PERMS) bin/$(platform)/$$i; \
+ echo "Done."; \
+ fi; \
+ done
+ @for i in $(PACKAGE_LIB_SPLICED_FILES) ""; do \
+ if test "$$i"; then \
+ echo "Creating a configured version of $$i .."; \
+ $(PERL) -i.bak -lpe 's|\$$libdir|$(libdir)|g;s|\$$datadir|$(datadir)|g' lib/$(platform)/$$i; \
+ fi; \
+ done
+ @if test "$(platform)" = "powerpc-apple-darwin"; then \
+ echo "Configuring install names..."; \
+ for i in lib/$(platform)/*; do \
+ sh fix_install_names.sh "$(libdir)" "$$i"; \
+ done; \
+ echo "Done."; \
+ fi