Skip to content

Commit 4cee989

Browse files
committed
Added option local_sources for better linux packaging with predownloaded sources
1 parent b637e38 commit 4cee989

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: build/build.xml

+13
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,21 @@
834834

835835
<!-- Retrieve tool -->
836836
<target name="untar-unzip-download" depends="untar-unzip-check" unless="${archive_file}_available">
837+
<antcall target="untar-unzip-download-web" />
838+
<antcall target="untar-unzip-download-local" />
839+
</target>
840+
<target name="untar-unzip-download-web" unless="local_sources">
837841
<get src="${archive_url}" dest="${archive_file}" verbose="true" ignoreerrors="true" />
838842
</target>
843+
<target name="untar-unzip-download-local" if="local_sources">
844+
<basename file="${archive_file}" property="basename" />
845+
<echo>Skipping download of ${archive_url}, using makepkg downloaded ${basename}</echo>
846+
<exec executable="ln" failonerror="true">
847+
<arg value="-s" />
848+
<arg value="${basedir}/../../${basename}" />
849+
<arg value="${archive_file}" />
850+
</exec>
851+
</target>
839852

840853
<target name="untar-unzip-checksum" depends="untar-unzip-download">
841854
<echo>Testing checksum of "${archive_file}"</echo>

0 commit comments

Comments
 (0)