diff options
author | mycroft <mycroft@pkgsrc.org> | 2003-01-10 14:25:22 +0000 |
---|---|---|
committer | mycroft <mycroft@pkgsrc.org> | 2003-01-10 14:25:22 +0000 |
commit | d296aa91c5540d861354fca6e6f992917c416069 (patch) | |
tree | 169f77843bc6037f5c5e4b6064863d7b3573021c /mk | |
parent | 5ede4f8cb7c78da2f0ce0f8622fdcca7f65db596 (diff) | |
download | pkgsrc-d296aa91c5540d861354fca6e6f992917c416069.tar.gz |
Protect some substitutions with slashes -- i.e. so that /usr/pkgsrc/.../work
doesn't get the /usr/pkg part expanded accidentally.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/buildlink2/gen-transform.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/buildlink2/gen-transform.sh b/mk/buildlink2/gen-transform.sh index 1067ccb547d..0f04154830c 100644 --- a/mk/buildlink2/gen-transform.sh +++ b/mk/buildlink2/gen-transform.sh @@ -33,14 +33,14 @@ gen() { @CAT@ >> $sedfile << EOF s|-$1$2[ ]$|-$1$3 |g s|-$1$2$|-$1$3|g -s|-$1$2\([^ "':;]*\)|-$1$3\1|g +s|-$1$2/|-$1$3/|g EOF ;; untransform) @CAT@ >> $sedfile << EOF s|-$1$3[ ]$|-$1$2 |g s|-$1$3$|-$1$2|g -s|-$1$3\([^ "':;]*\)|-$1$2\1|g +s|-$1$3/|-$1$2/|g EOF ;; esac @@ -51,6 +51,7 @@ EOF @CAT@ >> $sedfile << EOF s|-$1$2[ ]|-$1$3 |g s|-$1$2$|-$1$3|g +s|-$1$2/|-$1$3/|g EOF ;; esac @@ -87,7 +88,7 @@ EOF @CAT@ >> $sedfile << EOF s|$2[ ]| |g s|$2$||g -s|$2[^ "':;]*||g +s|$2/[^ "':;]*||g EOF ;; esac |