bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 01/21] gnulib-tool: disable a symbolic link on OS/2


From: KO Myung-Hun
Subject: [PATCH 01/21] gnulib-tool: disable a symbolic link on OS/2
Date: Sun, 30 Nov 2014 13:20:03 +0900

OS/2 does not support a symbolic link at all.

* gnulib-tool (no_symlink_support): New. Set to true on OS/2,
otherwise clear.
(symbolic, lsymbolic): Set to true unless no_symlink_support is set.
(do_copyrights): Clear unless no_symlink_support is set.
---
 gnulib-tool | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/gnulib-tool b/gnulib-tool
index 1cab1ed..f1c91c6 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -76,6 +76,12 @@ if test -z "${MAKE}"; then
   MAKE=make
 fi
 
+# OS/2 does not support a symbolc link at all
+case `uname -s` in
+  "OS/2") no_symlink_support=true;;
+  *) no_symlink_support=;;
+esac
+
 # When using GNU sed, turn off as many GNU extensions as possible,
 # to minimize the risk of accidentally using non-portable features.
 # However, do this only for gnulib-tool itself, not for the code that
@@ -1264,14 +1270,14 @@ fi
         doit=false
         shift ;;
       -s | --symbolic | --symboli | --symbol | --symbo | --symb | --symlink | 
--symlin | --symli | --syml | --sym | --sy )
-        symbolic=true
+        test -z "$no_symlink_support" && symbolic=true
         shift ;;
       --local-symlink | --local-symlin | --local-symli | --local-syml | 
--local-sym | --local-sy | --local-s )
-        lsymbolic=true
+        test -z "$no_symlink_support" && lsymbolic=true
         shift ;;
       -S | --more-symlinks | --more-symlink | --more-symlin | --more-symli | 
--more-syml | --more-sym | --more-sy | --more-s | --more- | --more | --mor | 
--mo )
-        symbolic=true
-        do_copyrights=
+        test -z "$no_symlink_support" && symbolic=true
+        test -z "$no_symlink_support" && do_copyrights=
         shift ;;
       --help | --hel | --he | --h )
         func_usage
-- 
1.8.5.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]