mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-01 01:36:01 +00:00
Create publish_eyetune.sh
This commit is contained in:
41
src/publish_eyetune.sh
Normal file
41
src/publish_eyetune.sh
Normal file
@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Options
|
||||
repo=projectm
|
||||
SRC=/d/GIT/$repo
|
||||
DEST=$SRC/projectm
|
||||
###
|
||||
mkdir -p $DEST
|
||||
|
||||
# Define a timestamp function
|
||||
timestamp() {
|
||||
date +"%Y%m%d%H%M%S"
|
||||
}
|
||||
|
||||
# Move 1 file
|
||||
move1() {
|
||||
cd $SRC/to_sync && find . -type f |head -1|xargs mv -t $DEST
|
||||
}
|
||||
|
||||
# Upload 10 at a time
|
||||
upload1() {
|
||||
cd $SRC && git pull
|
||||
cd $SRC && git status
|
||||
cd $SRC && git add .
|
||||
cd $SRC && git commit -m"preset_mega_pack-cognitive_api-sync-$(timestamp)"
|
||||
cd $SRC && git push
|
||||
cd $SRC && git status
|
||||
sleep 55s # Waits 55 seconds.
|
||||
}
|
||||
|
||||
|
||||
|
||||
# iterates
|
||||
i="0"
|
||||
while [ $i -lt 1000 ]
|
||||
do
|
||||
echo "iteration number $i"
|
||||
i=$[$i+1]
|
||||
# $(upload1)
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user