Skip to content
Snippets Groups Projects
Commit f111ab9d authored by Jean-Claude COLSON's avatar Jean-Claude COLSON
Browse files

Signed-off-by: Jean-Claude COLSON <Jean-Claude.Colson@univ-lorraine.fr>

parent 87215312
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,14 @@ ...@@ -17,8 +17,14 @@
</defaultProject>\ </defaultProject>\
</component>\ </component>\
</application> </application>
%if %( echo -n %{VerURL} | awk -F . '{ printf ( "%d%d%d", $1, $2, $3 ); }' ) < 410
%define ConfDir %( echo -n %{Version} | awk -F . '{ printf ( ".AndroidStudio%d.%d", $1, $2 ); }' ) %define ConfDir %( echo -n %{Version} | awk -F . '{ printf ( ".AndroidStudio%d.%d", $1, $2 ); }' )
%define ConfFil %( F="%{ConfDir}/config/options/project.default.xml" ; echo -n "$F" ; F="%{_sourcedir}/%{Name}-ide-$( basename $F )" ; if [ "%{WithSkel}" != "%%{WithSkel}" ]; then echo -n '%{Config}' > "$F" ; touch -r "%{_sourcedir}/$( echo -n %{SubURL} | awk -F / '{ printf ( $2 ); }')" "$F" ; elif [ "%{SrcURL}" != "%""{SrcURL}" ]; then rm -f "$F" ; fi ) %define ConfSub %{ConfDir}/config
%else
%define ConfDir %( echo -n %{Version} | awk -F . '{ printf ( ".config/Google/AndroidStudio%d.%d", $1, $2 ); }' )
%define ConfSub %{ConfDir}
%endif
%define ConfFil %( F="%{ConfSub}/options/project.default.xml" ; echo -n "$F" ; F="%{_sourcedir}/%{Name}-ide-$( basename $F )" ; if [ "%{WithSkel}" != "%%{WithSkel}" ]; then echo -n '%{Config}' > "$F" ; touch -r "%{_sourcedir}/$( echo -n %{SubURL} | awk -F / '{ printf ( $2 ); }')" "$F" ; elif [ "%{SrcURL}" != "%""{SrcURL}" ]; then rm -f "$F" ; fi )
Name: %{Name}-ide Name: %{Name}-ide
Version: %{Version} Version: %{Version}
Release: %{Release} Release: %{Release}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment