stop this nonsense of inflating org.eclipse.swt.gtk.linux.x86_64 post install
This commit is contained in:
parent
096c0dfe57
commit
cad88e874a
1 changed files with 14 additions and 12 deletions
|
@ -113,23 +113,25 @@ fi
|
||||||
echo -e "\nInstalling A2 gdm PostSession Default script"
|
echo -e "\nInstalling A2 gdm PostSession Default script"
|
||||||
scp /etc/gdm/PostSession/awips2VisualizeUtility.sh /etc/gdm/PostSession/Default
|
scp /etc/gdm/PostSession/awips2VisualizeUtility.sh /etc/gdm/PostSession/Default
|
||||||
|
|
||||||
pushd . > /dev/null 2>&1
|
#pushd . > /dev/null 2>&1
|
||||||
cd /awips2/alertviz/plugins
|
#cd /awips2/alertviz/plugins
|
||||||
# Forcefully unzip: org.eclipse.swt.gtk.linux.x86_64_*.jar
|
# Forcefully unzip: org.eclipse.swt.gtk.linux.x86_64_*.jar
|
||||||
# : if x86_64
|
# : if x86_64
|
||||||
if [ -f org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar ]; then
|
#if [ -f org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar ]; then
|
||||||
mkdir org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}
|
# mkdir org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}
|
||||||
unzip -qq org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar \
|
# unzip -qq org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar \
|
||||||
-d org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}
|
# -d org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}
|
||||||
rm -f org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
# rm -f org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
||||||
mv org.eclipse.swt.gtk.linux.x86_64_%{_swt_version} \
|
# mv org.eclipse.swt.gtk.linux.x86_64_%{_swt_version} \
|
||||||
org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
# org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
popd > /dev/null 2>&1
|
#popd > /dev/null 2>&1
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
rm -rf org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
||||||
%postun
|
%postun
|
||||||
|
rm -rf org.eclipse.swt.gtk.linux.x86_64_%{_swt_version}.jar
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
|
|
Loading…
Add table
Reference in a new issue