SPECS: sudosh.spec - fixed sed (need to escape forward slashes)

glen glen at pld-linux.org
Wed Jun 22 16:48:21 CEST 2005


Author: glen                         Date: Wed Jun 22 14:48:21 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fixed sed (need to escape forward slashes)

---- Files affected:
SPECS:
   sudosh.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SPECS/sudosh.spec
diff -u SPECS/sudosh.spec:1.11 SPECS/sudosh.spec:1.12
--- SPECS/sudosh.spec:1.11	Mon Jun  6 00:01:56 2005
+++ SPECS/sudosh.spec	Wed Jun 22 16:48:16 2005
@@ -3,7 +3,7 @@
 Summary(pl):	Powłoka sudo
 Name:		sudosh
 Version:	1.6.3
-Release:	0.1
+Release:	0.2
 License:	Open Software License v2.0
 Group:		Applications/Shells
 Source0:	http://dl.sourceforge.net/sudosh/%{name}-%{version}.tar.gz
@@ -55,8 +55,8 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-umask 022
 if [ ! -f /etc/shells ]; then
+	umask 022
 	echo '%{_bindir}/sudosh' >> /etc/shells
 else
 	grep -q '^%{_bindir}/sudosh$' /etc/shells || echo '%{_bindir}/sudosh' >> /etc/shells
@@ -64,7 +64,7 @@
 
 %preun
 if [ "$1" = "0" ]; then
-	sed -i -e '/^%{_bindir}/sudosh$/d' /etc/shells
+	sed -i -e '/^%(echo %{_bindir} | sed -e 's,/,\\/,g')\/sudosh$/d' /etc/shells
 fi
 
 %files
@@ -80,6 +80,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2005/06/22 14:48:16  glen
+- fixed sed (need to escape forward slashes)
+
 Revision 1.11  2005/06/05 22:01:56  paszczus
 - updated to 1.6.3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/sudosh.spec?r1=1.11&r2=1.12&f=u




More information about the pld-cvs-commit mailing list