Skip to content

Commit 7ac41b6

Browse files
committed
Use expand.sh for creating macros.javapackages-binding
1 parent d71789e commit 7ac41b6

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

build

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,12 @@ expand depgenerators/fileattrs/osgi.attr
7676
expand depgenerators/fileattrs/maven.attr
7777
expand depgenerators/fileattrs/javadoc.attr
7878

79-
while IFS== read -d' ' id path; do
80-
echo "%java_home ${path}" >target/macros.fjava-"${id}"
79+
while IFS== read -d' ' java_id java_home; do
80+
expand macros.d/macros.javapackages-binding target/macros.java-"${java_id}"
81+
sed -i \
82+
-e "s|@{java_id}|${java_id}|g" \
83+
-e "s|@{java_home}|${java_home}|g" \
84+
target/macros.java-"${java_id}"
8185
done <<<"${jvms}"
8286

8387
manpage abs2rel

install

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ inst_data target/find-jar.1 "${mandir}/man1"
138138
inst_data configs/configuration.xml "${m2home}"
139139

140140

141-
while IFS== read -d' ' id path; do
142-
exec >files-local-"${id}"
143-
inst_data target/macros.fjava-"${id}" "${rpmmacrodir}"
141+
while IFS== read -d' ' java_id java_path; do
142+
exec >files-local-"${java_id}"
143+
inst_data target/macros.java-"${java_id}" "${rpmmacrodir}"
144144
done <<<"${jvms}"
145145

146146

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Home directory for Java @{java_id}
2+
%java_home @{java_home}

0 commit comments

Comments
 (0)