@@ -162,15 +162,15 @@ depend() {
162
162
# Assign variables for extension flags.
163
163
assignflags () {
164
164
F_ignorePlaceholders=false
165
- F_ignoreAlphabetPlaceholders =false
165
+ F_forceLegacyPlaceholders =false
166
166
F_hasInstallScript=false
167
167
F_hasRemovalScript=false
168
168
F_hasExportScript=false
169
169
F_developerIgnoreInstallScript=false
170
170
F_developerIgnoreRebuild=false
171
171
F_developerForceMigrate=false
172
172
if [[ ( $flags == * " ignorePlaceholders," * ) || ( $flags == * " ignorePlaceholders" ) ]]; then F_ignorePlaceholders=true ; fi
173
- if [[ ( $flags == * " ignoreAlphabetPlaceholders ," * ) || ( $flags == * " ignoreAlphabetPlaceholders " ) ]]; then F_ignoreAlphabetPlaceholders =true ; fi
173
+ if [[ ( $flags == * " forceLegacyPlaceholders ," * ) || ( $flags == * " forceLegacyPlaceholders " ) ]]; then F_forceLegacyPlaceholders =true ; fi
174
174
if [[ ( $flags == * " hasInstallScript," * ) || ( $flags == * " hasInstallScript" ) ]]; then F_hasInstallScript=true ; fi
175
175
if [[ ( $flags == * " hasRemovalScript," * ) || ( $flags == * " hasRemovalScript" ) ]]; then F_hasRemovalScript=true ; fi
176
176
if [[ ( $flags == * " hasExportScript," * ) || ( $flags == * " hasExportScript" ) ]]; then F_hasExportScript=true ; fi
@@ -553,7 +553,8 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
553
553
554
554
# Use either legacy or stable placeholders for backwards compatibility.
555
555
if [[ $target == " alpha-" * ]] \
556
- || [[ $target == " indev-" * ]]; then
556
+ || [[ $target == " indev-" * ]] \
557
+ || $F_forceLegacyPlaceholders ; then
557
558
558
559
# (v1) Legacy placeholders
559
560
INSTALLMODE=" normal"
@@ -575,22 +576,19 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
575
576
-e " s~\^#blueprintversion#\^~$VERSION ~g" \
576
577
-e " s~\^#timestamp#\^~$INSTALL_STAMP ~g" \
577
578
-e " s~\^#componentroot#\^~@/blueprint/extensions/$identifier ~g" \
579
+ \
580
+ -e " s~__version__~$version ~g" \
581
+ -e " s~__author__~$author ~g" \
582
+ -e " s~__identifier__~$identifier ~g" \
583
+ -e " s~__name__~$name ~g" \
584
+ -e " s~__path__~$FOLDER ~g" \
585
+ -e " s~__datapath__~$FOLDER /.blueprint/extensions/$identifier /private~g" \
586
+ -e " s~__publicpath__~$FOLDER /.blueprint/extensions/$identifier /public~g" \
587
+ -e " s~__installmode__~$INSTALLMODE ~g" \
588
+ -e " s~__blueprintversion__~$VERSION ~g" \
589
+ -e " s~__timestamp__~$INSTALL_STAMP ~g" \
590
+ -e " s~__componentroot__~@/blueprint/extensions/$identifier ~g" \
578
591
" $file "
579
- if ! $F_ignoreAlphabetPlaceholders ; then
580
- sed -i \
581
- -e " s~__version__~$version ~g" \
582
- -e " s~__author__~$author ~g" \
583
- -e " s~__identifier__~$identifier ~g" \
584
- -e " s~__name__~$name ~g" \
585
- -e " s~__path__~$FOLDER ~g" \
586
- -e " s~__datapath__~$FOLDER /.blueprint/extensions/$identifier /private~g" \
587
- -e " s~__publicpath__~$FOLDER /.blueprint/extensions/$identifier /public~g" \
588
- -e " s~__installmode__~$INSTALLMODE ~g" \
589
- -e " s~__blueprintversion__~$VERSION ~g" \
590
- -e " s~__timestamp__~$INSTALL_STAMP ~g" \
591
- -e " s~__componentroot__~@/blueprint/extensions/$identifier ~g" \
592
- " $file "
593
- fi
594
592
elif [ -d " $file " ]; then
595
593
PLACE_PLACEHOLDERS " $file "
596
594
fi
@@ -621,6 +619,8 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
621
619
-e " s~\\ {timestamp~{!!!!timestamp~g" \
622
620
-e " s~\\ {mode~{!!!!mode~g" \
623
621
-e " s~\\ {target~{!!!!target~g" \
622
+ -e " s~\\ {root~{!!!!root~g" \
623
+ -e " s~\\ {webroot~{!!!!webroot~g" \
624
624
-e " s~\\ {is_~{!!!!is_~g" \
625
625
\
626
626
-e " s~{identifier}~$identifier ~g" \
@@ -631,10 +631,16 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
631
631
-e " s~{timestamp}~$INSTALL_STAMP ~g" \
632
632
-e " s~{mode}~$INSTALL_MODE ~g" \
633
633
-e " s~{target}~$VERSION ~g" \
634
+ -e " s~{root}~$FOLDER ~g" \
635
+ -e " s~{webroot}~/~g" \
634
636
\
635
637
-e " s~{identifier^}~${identifier^} ~g" \
636
638
-e " s~{identifier!}~${identifier^^} ~g" \
637
639
-e " s~{name!}~${name^^} ~g" \
640
+ -e " s~{root/public}~$FOLDER /.blueprint/extensions/$identifier /public~g" \
641
+ -e " s~{root/data}~$FOLDER /.blueprint/extensions/$identifier /private~g" \
642
+ -e " s~{webroot/public}~/extensions/$identifier ~g" \
643
+ -e " s~{webroot/fs}~/fs/extensions/$identifier ~g" \
638
644
\
639
645
-e " s~{is_target}~$IS_TARGET ~g" \
640
646
\
@@ -646,6 +652,8 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
646
652
-e " s~{!!!!timestamp~{timestamp~g" \
647
653
-e " s~{!!!!mode~{mode~g" \
648
654
-e " s~{!!!!target~{target~g" \
655
+ -e " s~{!!!!root~{root~g" \
656
+ -e " s~{!!!!webroot~{webroot~g" \
649
657
-e " s~{!!!!is_~{is~g" \
650
658
" $file "
651
659
0 commit comments