chiark / gitweb /
debian/control: Recommend the other build tools we usually need.
[cfd] / mklinks.in
index 863ead7cc04239d2e19ebd5c062a5c7c2a0daa50..34358799ac0a825f0eda9466cefc5efb018a9a93 100755 (executable)
@@ -71,12 +71,16 @@ done
 
 [ $# = 0 ] && set .links
 cat "$@" | while read name; do
-  case "$name" in "" | "#"*) continue ;; esac
-  base=${name##*/} dir=${name%/*}
-  if [ -r "$pkgdatadir/$base" ]; then
+  case "$name" in
+    "" | "#"*) continue ;;
+    *=*) want=${name##*=}; name=${name%=*} ;;
+    *) want=${name##*/} ;;
+  esac
+  dir=${name%/*}
+  if [ -r "$pkgdatadir/$want" ]; then
     mkdir -p "$dir"
     rm -f "$name"
-    ln -sf "$pkgdatadir/$base" "$name"
+    ln -sf "$pkgdatadir/$want" "$name"
   fi
 done