[asterisk-commits] branch 1.2 r11715 - in /branches/1.2: Makefile build_tools/make_build_h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Mar 3 10:13:38 MST 2006


Author: tilghman
Date: Fri Mar  3 11:13:37 2006
New Revision: 11715

URL: http://svn.digium.com/view/asterisk?rev=11715&view=rev
Log:
Bug 6638 - Solaris is starting to remind me of RedHat...

Modified:
    branches/1.2/Makefile
    branches/1.2/build_tools/make_build_h

Modified: branches/1.2/Makefile
URL: http://svn.digium.com/view/asterisk/branches/1.2/Makefile?rev=11715&r1=11714&r2=11715&view=diff
==============================================================================
--- branches/1.2/Makefile (original)
+++ branches/1.2/Makefile Fri Mar  3 11:13:37 2006
@@ -212,10 +212,12 @@
 endif
 
 GREP=grep
+ID=id
 
 ifeq ($(OSARCH),SunOS)
   GREP=/usr/xpg4/bin/grep
   M4=/usr/local/bin/m4
+  ID=/usr/xpg4/bin/id
 endif
 
 INCLUDE+=-Iinclude -I../include
@@ -539,7 +541,7 @@
 	$(MAKE) -C stdtime clean
 
 datafiles: all
-	if [ x`id -un` = xroot ]; then sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
+	if [ x`$(ID) -un` = xroot ]; then sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
 	mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits
 	mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/priv-callerintros
 	for x in sounds/digits/*.gsm; do \

Modified: branches/1.2/build_tools/make_build_h
URL: http://svn.digium.com/view/asterisk/branches/1.2/build_tools/make_build_h?rev=11715&r1=11714&r2=11715&view=diff
==============================================================================
--- branches/1.2/build_tools/make_build_h (original)
+++ branches/1.2/build_tools/make_build_h Fri Mar  3 11:13:37 2006
@@ -3,7 +3,11 @@
 KERNEL=`uname -r`
 MACHINE=`uname -m`
 OS=`uname -s`
-USER=`id -un`
+if [ `uname -s` = "SunOS" ]; then
+  USER=`/usr/xpg4/bin/id -un`
+else
+  USER=`id -un`
+fi
 DATE=`date -u "+%Y-%m-%d %H:%M:%S"`
 cat << END
 /*



More information about the asterisk-commits mailing list