Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167420
b: refs/heads/master
c: 9c3049c
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Contreras authored and Sam Ravnborg committed Oct 11, 2009
1 parent e128658 commit 129d38f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58242b2b065557f8467a8630f7c9b2b4b2eb891f
refs/heads/master: 9c3049c02c6142e166c9472237f1f60d86153682
8 changes: 6 additions & 2 deletions trunk/scripts/mkcompile_h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@ UTS_TRUNCATE="sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/"
echo \#define LINUX_COMPILE_HOST \"`hostname | $UTS_TRUNCATE`\"

if [ -x /bin/dnsdomainname ]; then
echo \#define LINUX_COMPILE_DOMAIN \"`dnsdomainname | $UTS_TRUNCATE`\"
domain=`dnsdomainname 2> /dev/null`
elif [ -x /bin/domainname ]; then
echo \#define LINUX_COMPILE_DOMAIN \"`domainname | $UTS_TRUNCATE`\"
domain=`domainname 2> /dev/null`
fi

if [ -n "$domain" ]; then
echo \#define LINUX_COMPILE_DOMAIN \"`echo $domain | $UTS_TRUNCATE`\"
else
echo \#define LINUX_COMPILE_DOMAIN
fi
Expand Down

0 comments on commit 129d38f

Please sign in to comment.