From e214ce9fa75a77436bbca77ffc9b78de31962277 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 28 Apr 2013 10:14:09 -0400 Subject: oh-installfiles: In mkdir cmd, rm / and 1+ chars. Previously, a pattern like `/usr/include/` in .pkg/files would cause oh-installfiles to run `mkdir -p .data//usr/include` and install headers in `.data/usr/include/include/`. Before: $ pkg=foo $ file=/usr/include $ echo mkdir -p "${pkg}.data/${file%/*}" mkdir -p foo.data//usr $ file=/usr/include/ $ echo mkdir -p "${pkg}.data/${file%/*}" mkdir -p foo.data//usr/include After: $ pkg=foo $ file=/usr/include $ echo mkdir -p "${pkg}.data/${file%/?*}" mkdir -p foo.data//usr $ file=/usr/include/ $ echo mkdir -p "${pkg}.data/${file%/?*}" mkdir -p foo.data//usr --- (limited to 'lib/buildsystem') -- cgit v0.9.1