[csw-devel] SF.net SVN: gar:[4714] csw/mgar/pkg/fixlibtool/trunk/fixlibtool
valholla at users.sourceforge.net
valholla at users.sourceforge.net
Wed May 6 18:04:27 CEST 2009
Revision: 4714
http://gar.svn.sourceforge.net/gar/?rev=4714&view=rev
Author: valholla
Date: 2009-05-06 16:04:27 +0000 (Wed, 06 May 2009)
Log Message:
-----------
backup files before changing them
Modified Paths:
--------------
csw/mgar/pkg/fixlibtool/trunk/fixlibtool
Modified: csw/mgar/pkg/fixlibtool/trunk/fixlibtool
===================================================================
--- csw/mgar/pkg/fixlibtool/trunk/fixlibtool 2009-05-06 13:14:23 UTC (rev 4713)
+++ csw/mgar/pkg/fixlibtool/trunk/fixlibtool 2009-05-06 16:04:27 UTC (rev 4714)
@@ -2,12 +2,11 @@
####################################################
#
# $URL$
-# $Author$
# $Date$
# $Revision$
# $LastChangedRevision$
#
-# Author: Mike Watters mwatters_at_opencsw_dot_org
+# Author: Mike Watters (mwatters~~@~~opencsw.org)
# Intended to remove the use of libtool's
# pseudo-libraries for opencsw builds.
#
@@ -33,6 +32,7 @@
## Fix Makefiles
for mk in $(gfind ${BASEPATH} -name Makefile -print); do
+ gcp ${mk} ${mk}.orig
LT_FILES=$(ggrep '/opt/csw.*/lib/.*\.la' ${mk} | \
gsed "s/^.*\(\/opt\/csw.*\/lib\/.*\.la\).*$/\1/")
@@ -42,20 +42,22 @@
-e "s/^lib//" \
-e "s/\.so.*$//")
fixpath=$(gecho $file |gsed 's/\//\\\//g')
- gsed "s/${fixpath}/-l${LIB_NAME}/g" ${mk} >Makefile.new
- gmv Makefile.new ${mk}
+ gsed "s/${fixpath}/-l${LIB_NAME}/g" ${mk} >${mk}.new
+ gmv ${mk}.new ${mk}
gchmod +x ${mk}
done
done
## Fix libtool Script
for lt in $(gfind ${BASEPATH} -name libtool -print); do
+ gcp ${lt} ${lt}.orig
gsed "/for search_ext in .*\.la/s/\.la//" ${lt} >${lt}.new
gmv ${lt}.new ${lt}
gchmod +x ${lt}
done
for LTMAIN in $(gfind ${BASEPATH} -name ltmain.sh -print); do
+ gcp ${LTMAIN} ${LTMAIN}.orig
gsed "/for search_ext in .*\.la/s/\.la//" ${LTMAIN} >${LTMAIN}.new
gmv ${LTMAIN}.new ${LTMAIN}
gchmod +x ${LTMAIN}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list