aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_symlinked_list.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/generate_symlinked_list.sh')
-rwxr-xr-xscripts/generate_symlinked_list.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/generate_symlinked_list.sh b/scripts/generate_symlinked_list.sh
new file mode 100755
index 0000000..fe7a7cc
--- /dev/null
+++ b/scripts/generate_symlinked_list.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+# Generate a list of symlinked files and directories.
+# Each line must be the file path, relative to the git root.
+
+WDir="${PWD##*/}"
+[[ $WDir == 'scripts' ]] && cd ..
+
+dst='nikola/data/symlinked.txt'
+git ls-files -s | awk '/120000/{print $4}' > $dst