diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-10-01 16:25:45 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-10-01 16:25:45 +0100 |
commit | aa86438443e5f591d024ae5db7c742f2735e9f3c (patch) | |
tree | de141497407be310f52d01244aad62868fa04145 /Makefile | |
parent | 610f1982ef62e9596df64839414cb1199a3a64b6 (diff) | |
download | abuild-aa86438443e5f591d024ae5db7c742f2735e9f3c.tar.gz abuild-aa86438443e5f591d024ae5db7c742f2735e9f3c.tar.bz2 abuild-aa86438443e5f591d024ae5db7c742f2735e9f3c.tar.xz abuild-aa86438443e5f591d024ae5db7c742f2735e9f3c.zip |
abuild: add amove func to move from $pkgdir to $subpkgdir
moving files and directories from $pkgdir to $subpkgdir is a common
pattern, so make a helper function for this.
usage: amove FILESPEC...
FILESPEC is a list of files or patterns/globs that will be exanded by
the shell.
amove will clean up empty directories after moving the files/dirs.
Example usage:
amove 'usr/lib/lib*.a'
amove 'etc/*.d' # moves both etc/conf.d and etc/init.d
amove 'lib/*.so' 'usr/lib/*.so'
cd "$pkgdir"
find usr -name '*.h' | xargs amove
This is based on the work of Chloe Kudryavtsev:
https://github.com/alpinelinux/abuild/pull/92
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions