From: Dave V. <va...@us...> - 2005-06-14 23:50:54
|
Update of /cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/utils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5144 Modified Files: osxutils.info Log Message: xcode 2.1 Index: osxutils.info =================================================================== RCS file: /cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/utils/osxutils.info,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- osxutils.info 6 Jun 2005 10:47:53 -0000 1.4 +++ osxutils.info 14 Jun 2005 23:50:44 -0000 1.5 @@ -1,13 +1,13 @@ Package: osxutils Version: 1.6 -Revision: 12 +Revision: 13 License: GPL Replaces: lsmac HomePage: http://sourceforge.net/projects/osxutils/ Source: mirror:sourceforge:%n/%n-%v.src.tar.bz2 Source-MD5: 07ecfb4141dd0dabd7b79cdc3312f5ee SourceDirectory: %n-%v -DocFiles: build/CHANGES.txt build/LICENSE.txt build/README.txt build/TODO.txt +DocFiles: doc/CHANGES.txt doc/LICENSE.txt doc/README.txt doc/TODO.txt Description: Mac-specific command-line file utilities DescDetail: << osxutils is a package of potentially useful Mac-oriented command-line @@ -34,16 +34,29 @@ << NoSetCC: true InstallScript: << -#!/bin/sh -install -d -m 0755 %i/bin %i/share/man/man1 %i/share/doc/%n -for proj in cpath fileinfo get{fcomment,icon} lsmac mkalias rcmac set{fcomment,fctypes,fflags,icon,label,suffix} trash wiki; do - install -m 0755 build/$proj %i/bin - install -m 0644 build/$proj.1 %i/share/man/man1 -done -install -m 0755 build/google %i/bin/google-osxutils -install -m 0644 build/google.1 %i/share/man/man1/google-osxutils.1 -install -m 0644 build/osxutils.1 %i/share/man/man1/osxutils.1 -install -m 0755 build/uninstall.command %i/share/doc/%n + #!/bin/sh + + xcver=$(xcodebuild -version | grep DevToolsCore | \ + sed 's/.*DevToolsCore-//' | sed 's/\..*//') + if [ -z "$xcver" ] + then echo "Couldn't determine xcodebuild version" 2>&1 + exit 1 + elif [ $xcver -lt 620 ] + then builddir="build" + else + builddir="build/Deployment" + fi + + + install -d -m 0755 %i/bin %i/share/man/man1 %i/share/doc/%n + for proj in cpath fileinfo get{fcomment,icon} lsmac mkalias rcmac set{fcomment,fctypes,fflags,icon,label,suffix} trash wiki; do + install -m 0755 $builddir/$proj %i/bin + install -m 0644 build/$proj.1 %i/share/man/man1 + done + install -m 0755 $builddir/google %i/bin/google-osxutils + install -m 0644 build/google.1 %i/share/man/man1/google-osxutils.1 + install -m 0644 build/osxutils.1 %i/share/man/man1/osxutils.1 + install -m 0755 $builddir/uninstall.command %i/share/doc/%n << PostInstScript: << update-alternatives --install %p/bin/google google %p/bin/google-osxutils -10 --slave %p/share/man/man1/google.1 google.1 %p/share/man/man1/google-osxutils.1 |