Corrects Makefile generation when some script names are of the form

ddd-d-name, where d represent a digit. This is used for package management
and/or for adding custom scripts (see README)
This commit is contained in:
Pierre Labastie 2012-02-12 18:54:37 +00:00
parent 575bcf3c88
commit e639536073

View file

@ -336,7 +336,7 @@ EOF
#----------------------------------# #----------------------------------#
LUSER_wrt_LogNewFiles() { # LUSER_wrt_LogNewFiles() { #
#----------------------------------# #----------------------------------#
local name=$1 local name=`echo ${1} | sed 's/[0-9]-//'`
( (
cat << EOF cat << EOF
@\$(call log_new_files_LUSER,$name) @\$(call log_new_files_LUSER,$name)
@ -347,7 +347,7 @@ EOF
#----------------------------------# #----------------------------------#
CHROOT_wrt_LogNewFiles() { # CHROOT_wrt_LogNewFiles() { #
#----------------------------------# #----------------------------------#
local name=$1 local name=`echo ${1} | sed 's/[0-9]-//'`
( (
cat << EOF cat << EOF
@\$(call log_new_files,$name) @\$(call log_new_files,$name)
@ -363,7 +363,7 @@ EOF
#----------------------------------# #----------------------------------#
LUSER_RemoveBuildDirs() { # LUSER_RemoveBuildDirs() { #
#----------------------------------# #----------------------------------#
local name=$1 local name=`echo ${1} | sed 's/[0-9]-//'`
( (
cat << EOF cat << EOF
@\$(call remove_build_dirs,$name) @\$(call remove_build_dirs,$name)
@ -374,7 +374,7 @@ EOF
#----------------------------------# #----------------------------------#
CHROOT_wrt_RemoveBuildDirs() { # CHROOT_wrt_RemoveBuildDirs() { #
#----------------------------------# #----------------------------------#
local name=$1 local name=`echo ${1} | sed 's/[0-9]-//'`
( (
cat << EOF cat << EOF
@\$(call remove_build_dirs2,$name) @\$(call remove_build_dirs2,$name)