-
-#
-# The vaguely funky eval 'exec ...' echo line above *might* be
-# a tad too much for some `make's - here's what it should return
-# if all is well:
-#
-# eval 'exec /installed/path/for/perl -S $0 ${1+"$@"}'
-# if $running_under_some_shell;
-#
-
-mk-version-symlinks ::
- @for i in $(VERSION_SYMLINKS_FOR) ""; do \
- if [ "x$$i" != "x" ]; then \
- echo "Symlinking $$i to $$i-$(version)"; \
- (cd bin/$(platform)/$(package)-$(version); $(RM) $$i-$(version); $(LN_S) $$i $$i-$(version) ); \
- fi;\
+ @for i in $(PACKAGE_LIB_PRL_SCRIPTS) ""; do \
+ if test "$$i"; then \
+ echo "Creating a configured version of $$i .."; \
+ $(RM) lib/$(platform)/$$i.bak; \
+ if [ -f lib/$(platform)/$$i ]; then $(MV) lib/$(platform)/$$i lib/$(platform)/$$i.bak; fi; \
+ echo "#! $(PERL)" > lib/$(platform)/$$i ; \
+ echo '$$'"bindir='$(bindir)';" >> lib/$(platform)/$$i ; \
+ echo '$$'"libdir='$(libdir)';" >> lib/$(platform)/$$i ; \
+ echo '$$'"libexecdir='$(libdir)';" >> lib/$(platform)/$$i ; \
+ echo '$$'"datadir='$(datadir)';" >> lib/$(platform)/$$i ; \
+ echo '$$'"SED='$(SED)';" >> lib/$(platform)/$$i ; \
+ echo '$$'"DEFAULT_TMPDIR='$(DEFAULT_TMPDIR)';" >> lib/$(platform)/$$i ; \
+ cat lib/$(platform)/$$i.prl >> lib/$(platform)/$$i; \
+ $(CHMOD) $(BIN_PERMS) lib/$(platform)/$$i; \
+ echo "Done."; \
+ fi; \
+ done
+ @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; \