[vlc-commits] commit: bootstrap: Use a link to distro file instead of a copy. (Pierre d' Herbemont )
git at videolan.org
git at videolan.org
Wed Nov 17 19:51:03 CET 2010
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Wed Nov 17 19:17:24 2010 +0100| [dd5d3f52dc2d36ec7bc8fcb1200103259fdaee36] | committer: Pierre d'Herbemont
bootstrap: Use a link to distro file instead of a copy.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dd5d3f52dc2d36ec7bc8fcb1200103259fdaee36
---
extras/contrib/bootstrap | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap
index c327467..d3ef7df 100755
--- a/extras/contrib/bootstrap
+++ b/extras/contrib/bootstrap
@@ -149,14 +149,6 @@ rm -f "${config_mak}"
echo "# Make changes if you know what you're doing."
} > "${config_mak}"
-# Create distro.mak
-distro_mak="${BUILDDIR}/distro.mak"
-rm -f "${distro_mak}"
-{
- echo "# Automatically generated by bootstrap"
- echo "# Make changes if you know what you're doing."
-} > "${distro_mak}"
-
if test "$TARGET" != "$BUILD"; then
test -z "$CC" && CC="${TARGET}-gcc"
test -z "$CXX" && CXX="${TARGET}-g++"
@@ -312,7 +304,10 @@ fi
# Default Unix-like systems
hint_distro unix
-cat src/Distributions/"${DISTRO}".mak >> "${distro_mak}"
+distro_mak="${BUILDDIR}/distro.mak"
+distro_file="`pwd`/src/Distributions/${DISTRO}.mak"
+rm "${distro_mak}"
+ln -sf "${distro_file}" "${distro_mak}"
#
# Distro specific settings
More information about the vlc-commits
mailing list