aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_symlinked_list.sh
blob: fe7a7cc41ed9c2d6eb9bf7b6aa03d60ed83ae645 (plain) (blame)
1
2
3
4
5
6
7
8
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