Skip to content

Commit d3bd5f2

Browse files
NicoHoodcmaglie
authored andcommitted
Added option local_sources for better linux packaging with predownloaded sources
1 parent 1da9108 commit d3bd5f2

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
@@ -837,8 +837,21 @@
837837

838838
<!-- Retrieve tool -->
839839
<target name="untar-unzip-download" depends="untar-unzip-check" unless="${archive_file}_available">
840+
<antcall target="untar-unzip-download-web" />
841+
<antcall target="untar-unzip-download-local" />
842+
</target>
843+
<target name="untar-unzip-download-web" unless="local_sources">
840844
<get src="${archive_url}" dest="${archive_file}" verbose="true" ignoreerrors="true" />
841845
</target>
846+
<target name="untar-unzip-download-local" if="local_sources">
847+
<basename file="${archive_file}" property="basename" />
848+
<echo>Skipping download of ${archive_url}, using makepkg downloaded ${basename}</echo>
849+
<exec executable="ln" failonerror="true">
850+
<arg value="-s" />
851+
<arg value="${basedir}/../../${basename}" />
852+
<arg value="${archive_file}" />
853+
</exec>
854+
</target>
842855

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

0 commit comments

Comments
 (0)