Displaying 1 result from an estimated 1 matches for "symlink_dir".
2005 Aug 08
0
[PATCH] put xenstore headers in linux-public
...a tree of symlinks in the current working directory that mirror
+# <target_files> in <target_dir>. <target_dir> should be relative to the current
+# working directory. Symlinks in <target_dir> are ignored. Source-control files
+# are ignored.
+relative_lnfiles ()
+{
+ local SYMLINK_DIR REAL_DIR pref i
+ SYMLINK_DIR=$PWD
+ REAL_DIR=$1
+ shift
+ (
+ cd $REAL_DIR
+ for i in "$*"; do
+ ln -sf ${REAL_DIR}/$i ${SYMLINK_DIR}/$i
+ done
+ )
+}
+
[ "$1" == "" ] && { echo "Syntax: $0 <linux tree to xenify>"; exit 1; }
# Ge...