@@ -209,33 +209,40 @@ distcheck-osx: dist-osx
209
209
# Unix binary installer tarballs
210
210
# #####################################################################
211
211
212
+ NON_INSTALLED_PREFIXES =COPYRIGHT,LICENSE-APACHE,LICENSE-MIT,README.md,doc
213
+
212
214
define DEF_INSTALLER
213
215
214
216
$$(eval $$(call DEF_PREPARE,dir-$(1 ) ) )
215
217
216
218
dist-install-dir-$(1 ) : PREPARE_HOST=$(1 )
217
219
dist-install-dir-$(1 ) : PREPARE_TARGETS=$(2 )
218
- dist-install-dir-$(1 ) : PREPARE_DEST_DIR=tmp/dist/$$(PKG_NAME ) -$(1 )
220
+ dist-install-dir-$(1 ) : PREPARE_DEST_DIR=tmp/dist/$$(PKG_NAME ) -$(1 ) -image
219
221
dist-install-dir-$(1 ) : PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD )
220
222
dist-install-dir-$(1 ) : PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD )
221
223
dist-install-dir-$(1 ) : PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD )
222
224
dist-install-dir-$(1 ) : PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD )
223
225
dist-install-dir-$(1 ) : PREPARE_CLEAN=true
224
226
dist-install-dir-$(1 ) : prepare-base-dir-$(1 ) docs compiler-docs
225
- $$(Q ) (cd $$(PREPARE_DEST_DIR ) / && find . -type f | sed 's/^\.\///') \
226
- > tmp/dist/manifest-$(1 ) .in
227
- $$(Q ) mv tmp/dist/manifest-$(1 ) .in $$(PREPARE_DEST_DIR ) /$$(CFG_LIBDIR_RELATIVE ) /rustlib/manifest.in
228
- # Add remaining non-installed files
229
227
$$(Q )$$(PREPARE_MAN_CMD ) $$(S ) COPYRIGHT $$(PREPARE_DEST_DIR )
230
228
$$(Q )$$(PREPARE_MAN_CMD ) $$(S ) LICENSE-APACHE $$(PREPARE_DEST_DIR )
231
229
$$(Q )$$(PREPARE_MAN_CMD ) $$(S ) LICENSE-MIT $$(PREPARE_DEST_DIR )
232
230
$$(Q )$$(PREPARE_MAN_CMD ) $$(S ) README.md $$(PREPARE_DEST_DIR )
233
231
$$(Q ) cp -r doc $$(PREPARE_DEST_DIR )
234
- $$(Q )$$(PREPARE_BIN_CMD ) $$(S ) src/etc/install.sh $$(PREPARE_DEST_DIR )
235
232
236
233
dist/$$(PKG_NAME ) -$(1 ) .tar.gz: dist-install-dir-$(1 )
237
234
@$(call E, build: $$@ )
238
- $$(Q ) tar -czf dist/$$(PKG_NAME ) -$(1 ) .tar.gz -C tmp/dist $$(PKG_NAME ) -$(1 )
235
+ $$(Q )$$(S ) src/rust-installer/gen-installer.sh \
236
+ --product-name=Rust \
237
+ --verify-bin=rustc \
238
+ --rel-manifest-dir=rustlib \
239
+ --success-message=Rust-is-ready-to-roll. \
240
+ --image-dir=tmp/dist/$$(PKG_NAME ) -$(1 ) -image \
241
+ --work-dir=tmp/dist \
242
+ --output-dir=dist \
243
+ --non-installed-prefixes=$$(NON_INSTALLED_PREFIXES ) \
244
+ --package-name=$$(PKG_NAME ) -$(1 )
245
+ $$(Q ) rm -R tmp/dist/$$(PKG_NAME ) -$(1 ) -image
239
246
240
247
endef
241
248
0 commit comments