most of program1 is done, shape of program2, actual app to be started
This commit is contained in:
14
program2/program2.sh
Executable file
14
program2/program2.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
set -euo pipefail
|
||||
SCRIPTS_DIR=$(dirname `realpath ${BASH_SOURCE[0]}`)
|
||||
|
||||
export DANCE_VIDEOS_DB="${HOME}/Documents/.DanceVideos/db.sqlite"
|
||||
export DOSSIER_PLAYLIST="$(dirname $DANCE_VIDEOS_DB)/playlists"
|
||||
|
||||
rm -rf $DOSSIER_PLAYLIST
|
||||
|
||||
export PLAYLIST_ALL=$DOSSIER_PLAYLIST/all
|
||||
mkdir -p $PLAYLIST_ALL
|
||||
|
||||
for v in $(sqlite3 $DANCE_VIDEOS_DB "select rotated_file from videos"); do
|
||||
ln -s $v $PLAYLIST_ALL/$(basename $(dirname $v)).mp4
|
||||
done
|
||||
Reference in New Issue
Block a user