tcsh.spec: Indentation updated to be visually consistent, TABs removed
This commit is contained in:
parent
e334622370
commit
e7bb88b90b
52
tcsh.spec
52
tcsh.spec
@ -76,20 +76,20 @@ make %{?_smp_mflags} -C nls catalogs
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 ${RPM_BUILD_ROOT}%{_bindir}
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 ${RPM_BUILD_ROOT}%{_bindir}
|
||||||
install -p -m 755 tcsh ${RPM_BUILD_ROOT}%{_bindir}/tcsh
|
install -p -m 755 tcsh ${RPM_BUILD_ROOT}%{_bindir}/tcsh
|
||||||
install -p -m 644 tcsh.man ${RPM_BUILD_ROOT}%{_mandir}/man1/tcsh.1
|
install -p -m 644 tcsh.man ${RPM_BUILD_ROOT}%{_mandir}/man1/tcsh.1
|
||||||
ln -sf tcsh ${RPM_BUILD_ROOT}%{_bindir}/csh
|
ln -sf tcsh ${RPM_BUILD_ROOT}%{_bindir}/csh
|
||||||
ln -sf tcsh.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/csh.1
|
ln -sf tcsh.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/csh.1
|
||||||
|
|
||||||
while read lang language ; do
|
while read lang language ; do
|
||||||
dest=${RPM_BUILD_ROOT}%{_datadir}/locale/$lang/LC_MESSAGES
|
dest=${RPM_BUILD_ROOT}%{_datadir}/locale/$lang/LC_MESSAGES
|
||||||
if test -f nls/$language.cat ; then
|
if test -f nls/$language.cat ; then
|
||||||
mkdir -p $dest
|
mkdir -p $dest
|
||||||
install -p -m 644 nls/$language.cat $dest/tcsh
|
install -p -m 644 nls/$language.cat $dest/tcsh
|
||||||
echo "%lang($lang) %{_datadir}/locale/$lang/LC_MESSAGES/tcsh"
|
echo "%lang($lang) %{_datadir}/locale/$lang/LC_MESSAGES/tcsh"
|
||||||
fi
|
fi
|
||||||
done > tcsh.lang << _EOF
|
done > tcsh.lang << _EOF
|
||||||
de german
|
de german
|
||||||
el greek
|
el greek
|
||||||
@ -116,30 +116,26 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
if [ ! -f /etc/shells ]; then
|
if [ ! -f /etc/shells ]; then
|
||||||
echo "%{_bindir}/tcsh" >> /etc/shells
|
echo "%{_bindir}/tcsh" >> /etc/shells
|
||||||
echo "/bin/tcsh" >> /etc/shells
|
echo "/bin/tcsh" >> /etc/shells
|
||||||
echo "%{_bindir}/csh" >> /etc/shells
|
echo "%{_bindir}/csh" >> /etc/shells
|
||||||
echo "/bin/csh" >> /etc/shells
|
echo "/bin/csh" >> /etc/shells
|
||||||
else
|
else
|
||||||
grep -q '^%{_bindir}/tcsh$' /etc/shells || \
|
grep -q '^%{_bindir}/tcsh$' /etc/shells || echo "%{_bindir}/tcsh" >> /etc/shells
|
||||||
echo "%{_bindir}/tcsh" >> /etc/shells
|
grep -q '^/bin/tcsh$' /etc/shells || echo "/bin/tcsh" >> /etc/shells
|
||||||
grep -q '^/bin/tcsh$' /etc/shells || \
|
grep -q '^%{_bindir}/csh$' /etc/shells || echo "%{_bindir}/csh" >> /etc/shells
|
||||||
echo "/bin/tcsh" >> /etc/shells
|
grep -q '^/bin/csh$' /etc/shells || echo "/bin/csh" >> /etc/shells
|
||||||
grep -q '^%{_bindir}/csh$' /etc/shells || \
|
|
||||||
echo "%{_bindir}/csh" >> /etc/shells
|
|
||||||
grep -q '^/bin/csh$' /etc/shells || \
|
|
||||||
echo "/bin/csh" >> /etc/shells
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ ! -x %{_bindir}/tcsh ]; then
|
if [ ! -x %{_bindir}/tcsh ]; then
|
||||||
grep -v '^%{_bindir}/tcsh$' /etc/shells | \
|
grep -v '^%{_bindir}/tcsh$' /etc/shells | \
|
||||||
grep -v '^%{_bindir}/csh$' > /etc/shells.rpm && \
|
grep -v '^%{_bindir}/csh$' > /etc/shells.rpm && \
|
||||||
grep -v '^/bin/tcsh$' /etc/shells | \
|
grep -v '^/bin/tcsh$' /etc/shells | \
|
||||||
grep -v '^%{_bindir}/csh$' | \
|
grep -v '^%{_bindir}/csh$' | \
|
||||||
grep -v '^/bin/csh$' > /etc/shells.rpm && \
|
grep -v '^/bin/csh$' > /etc/shells.rpm && \
|
||||||
mv /etc/shells.rpm /etc/shells
|
mv /etc/shells.rpm /etc/shells
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user