mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
* When converting from rpm, do parent directory 755 chmods first, then
known permissions setting from rpm --queryformat, so that it can override
any directories that do indeed have a permission set.
* Fixed MakeFile.PL to work with perl 5.8.
This commit is contained in:
13
Makefile.PL
13
Makefile.PL
@@ -17,6 +17,11 @@ sub MY::postamble {
|
||||
|
||||
VER=$(shell perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)
|
||||
|
||||
all:: extra_build
|
||||
clean:: extra_build
|
||||
install:: extra_install
|
||||
pure_install:: extra_install
|
||||
|
||||
extra_build:
|
||||
perl -i -pe "s/\@version\@/$(VER)/g" <alien.lsm.in >alien.lsm
|
||||
perl -i -pe "s/\@version\@/$(VER)/g" <alien.spec.in >alien.spec
|
||||
@@ -39,13 +44,5 @@ alien:
|
||||
WriteMakefile(
|
||||
'NAME' => 'Alien',
|
||||
'EXE_FILES' => ['alien'],
|
||||
# Pure evil. Hook into build and install targets
|
||||
'depend' => {'all:' => 'extra_build',
|
||||
# Why build on clean? Because I want to ensure the spec file
|
||||
# gets put in the tarball, and so it has to happen in debian/rules
|
||||
# clean
|
||||
'clean:' => 'extra_build',
|
||||
'install:' => 'extra_install',
|
||||
'pure_install:' => 'extra_install'},
|
||||
'clean' => {FILES => 'alien'},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user