Reorganize the templates directory for possible future changes.
Now every template uses its own directory. Patches, prepost* files and other related stuff are stored there. --HG-- extra : convert_revision : bbc529ef161d9a59fe13a1d54ac058f77ea05845
This commit is contained in:
@@ -32,10 +32,10 @@ apply_tmpl_patches()
|
||||
local i=
|
||||
|
||||
# Apply some build/install patches automatically.
|
||||
if [ -f $XBPS_TEMPLATESDIR/$pkgname-fix-build.diff ]; then
|
||||
if [ -f $XBPS_TEMPLATESDIR/$pkgname/$pkgname-fix-build.diff ]; then
|
||||
patch_files="$pkgname-fix-build.diff $patch_files"
|
||||
fi
|
||||
if [ -f $XBPS_TEMPLATESDIR/$pkgname-fix-install.diff ]; then
|
||||
if [ -f $XBPS_TEMPLATESDIR/$pkgname/$pkgname-fix-install.diff ]; then
|
||||
patch_files="$pkgname-fix-install.diff $patch_files"
|
||||
fi
|
||||
|
||||
@@ -47,7 +47,7 @@ apply_tmpl_patches()
|
||||
# apply them now.
|
||||
#
|
||||
for i in ${patch_files}; do
|
||||
patch="$XBPS_TEMPLATESDIR/$i"
|
||||
patch="$XBPS_TEMPLATESDIR/$pkgname/$i"
|
||||
if [ ! -f "$patch" ]; then
|
||||
msg_warn "unexistent patch: $i."
|
||||
continue
|
||||
|
Reference in New Issue
Block a user