From 56740691f98f937f898049017c49038b05cf4a4e Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 14 Dec 2010 00:48:23 +0000 Subject: fix installation of objects with a $ in the name and ease building of GNU/Linux distro tarball svn path=/trunk/; revision=14632 --- packages/linux_make/generate_install_makefile.bash | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'packages/linux_make/generate_install_makefile.bash') diff --git a/packages/linux_make/generate_install_makefile.bash b/packages/linux_make/generate_install_makefile.bash index 3ef8a519..57e17648 100755 --- a/packages/linux_make/generate_install_makefile.bash +++ b/packages/linux_make/generate_install_makefile.bash @@ -12,8 +12,8 @@ SED=`echo sed "s|${ROOT_DIR}/||"` function print_file () { - local my_file=$1 - echo -e "\tinstall -p '$my_file' '\$(prefix)/$my_file'" + local my_file=`echo $1 | sed 's/\\\$/\$\$/g'` + echo -e "\tinstall -p '$my_file' '\$(prefix)/$my_file'" } function print_dir () @@ -38,9 +38,7 @@ function traverse_install_tree () function remove_file () { -# arg, $n-help.pd causes lots of problems -# local my_file=`echo $1 | sed 's|$|\\$|g'` - local my_file=$1 + local my_file=`echo $1 | sed 's/\\\$/\$\$/g'` echo -e "\trm -f -- '\$(prefix)/$my_file'" } -- cgit v1.2.1