]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 220100 via svnmerge from
authorSean Bright <sean@malleable.com>
Thu, 24 Sep 2009 14:49:35 +0000 (14:49 +0000)
committerSean Bright <sean@malleable.com>
Thu, 24 Sep 2009 14:49:35 +0000 (14:49 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
  r220100 | seanbright | 2009-09-24 10:44:08 -0400 (Thu, 24 Sep 2009) | 9 lines

  Merged revisions 220099 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r220099 | seanbright | 2009-09-24 10:41:57 -0400 (Thu, 24 Sep 2009) | 2 lines

    Remove the remaining bashisms in the Makefile/mkpkgconfig
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@220102 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
build_tools/mkpkgconfig

index 74457a3ae786596498511c3bbbdab2719f95851b..d201a27eff0c304a18c51b880d44fa797f524e7f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -463,7 +463,9 @@ distclean: $(SUBDIRS_DIST_CLEAN) _clean
        rm -f build_tools/menuselect-deps
 
 datafiles: _all
-       if [ x`$(ID) -un` = xroot ]; then CFLAGS="$(_ASTCFLAGS) $(ASTCFLAGS)" bash build_tools/mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
+       if [ `$(ID) -u` = 0 ]; then \
+               CFLAGS="$(_ASTCFLAGS) $(ASTCFLAGS)" build_tools/mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; \
+       fi
 # Should static HTTP be installed during make samples or even with its own target ala
 # webvoicemail?  There are portions here that *could* be customized but might also be
 # improved a lot.  I'll put it here for now.
index 919c6e816f7312689a51b511ea55b66d1e988824..522afba870512a2afd93bec841190e7899a97fb2 100755 (executable)
@@ -14,7 +14,7 @@ if [ ! -d $PPATH ]; then
 fi
 
 #Solaris (and some others) don't have sed -r.  perl -p is equivalent
-if [[ `echo "xxx" | sed -r 's/x/y/g' 2>/dev/null | ${GREP} -c "yyy"` != 0 ]]; then
+if [ `echo "xxx" | sed -r 's/x/y/g' 2>/dev/null | ${GREP} -c "yyy"` != 0 ]; then
     EXTREGEX="sed -r -e"
 else
     EXTREGEX="perl -pe"