From 84c196ed20254587dcb50212b37977963425c019 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 09 Apr 2012 21:38:37 -0400 Subject: Really support path patterns in oh-installfiles. --- diff --git a/src/oh-installfiles.sh b/src/oh-installfiles.sh index ca52025..73a27a4 100644 --- a/src/oh-installfiles.sh +++ b/src/oh-installfiles.sh @@ -44,13 +44,15 @@ while [ ${#} -gt 0 ]; do # Loop over lines in the 'install' file. while read -r pattern; do - # Ensure that the full directory path of the pattern exists in the - # package staging area. - pattern_dir=$(dirname ${pattern}) - mkdir -p ${1}.data/${pattern_dir} || exit 1 - # Move any matching files from the installation destination to the - # package staging area. - mv dest/${pattern} ${1}.data/${pattern_dir} || exit 1 + for file in ${pattern}; do + # Ensure that the full directory path of the pattern exists in the + # package staging area. + dir=$(dirname ${file}) + mkdir -p ${1}.data/${dir} || exit 1 + # Move any matching files from the installation destination to the + # package staging area. + mv dest/${file} ${1}.data/${dir} || exit 1 + done done < ../${1}.pkg/install shift done -- cgit v0.9.1