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:
parent
6c252d43d4
commit
fa2748d9b2
291 changed files with 25 additions and 24 deletions
|
@ -44,7 +44,7 @@ stow_pkg()
|
|||
fi
|
||||
|
||||
if [ -n "$stow_flag" ]; then
|
||||
pkg=$XBPS_TEMPLATESDIR/$pkg.tmpl
|
||||
pkg=$XBPS_TEMPLATESDIR/$pkg/template
|
||||
if [ "$pkgname" != "$pkg" ]; then
|
||||
. $pkg
|
||||
fi
|
||||
|
@ -65,7 +65,7 @@ stow_pkg()
|
|||
# Run template postinstall helpers if requested.
|
||||
#
|
||||
if [ "$pkgname" != "${pkg%%-$version}" ]; then
|
||||
. $XBPS_TEMPLATESDIR/${pkg%%-$version}.tmpl
|
||||
. $XBPS_TEMPLATESDIR/${pkg%%-$version}/template
|
||||
fi
|
||||
|
||||
for i in ${postinstall_helpers}; do
|
||||
|
@ -92,7 +92,7 @@ unstow_pkg()
|
|||
fi
|
||||
|
||||
if [ "$pkgname" != "$pkg" ]; then
|
||||
. $XBPS_TEMPLATESDIR/$pkg.tmpl
|
||||
. $XBPS_TEMPLATESDIR/$pkg/template
|
||||
fi
|
||||
|
||||
ver=$($XBPS_REGPKGDB_CMD version $pkg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue