mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-07-16 05:24:07 +00:00
added scripts
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,5 @@
|
|||||||
*~
|
*~
|
||||||
node_modules
|
node_modules
|
||||||
scripts
|
|
||||||
blog
|
blog
|
||||||
local
|
local
|
||||||
release
|
release
|
||||||
|
@@ -1,2 +1,8 @@
|
|||||||
# 8bitworkshop
|
# 8bitworkshop
|
||||||
8bitworkshop.com
|
8bitworkshop.com
|
||||||
|
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
npm i
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
Submodule codemirror updated: 4334727f0e...ebf81921f8
1
scripts/.gitignore
vendored
Normal file
1
scripts/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
env.sh
|
5
scripts/sync-blog.sh
Executable file
5
scripts/sync-blog.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ./scripts/env.sh
|
||||||
|
rsync --stats -arilv -e "ssh -p 2222" ./blog/ $RSYNC_PATH/blog/
|
||||||
|
#rsync --stats -arilv -e "ssh -p 2222" ./scripts/ pzp@104.131.86.119:./backups
|
7
scripts/sync-dev.sh
Executable file
7
scripts/sync-dev.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ./scripts/env.sh
|
||||||
|
DESTPATH=$RSYNC_PATH/dev/
|
||||||
|
git ls-files -z | rsync --stats --exclude '.*' --exclude 'scripts/*' --exclude=node_modules -aril -e "ssh -p 2222" --files-from - -0 . $DESTPATH
|
||||||
|
git archive --format tar.gz --prefix 8bitworkshop- HEAD tools/ > release/8bitworkshop-tools.tgz
|
||||||
|
rsync --stats -arilvz -e "ssh -p 2222" ./gen ./mame $DESTPATH/
|
10
scripts/sync-production.sh
Executable file
10
scripts/sync-production.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ./scripts/env.sh
|
||||||
|
DESTPATH=$RSYNC_PATH/
|
||||||
|
echo "Upload HEAD to production? [Press Enter]"
|
||||||
|
read
|
||||||
|
git ls-files -z | rsync --stats --exclude '.*' --exclude 'scripts/*' --exclude=node_modules -aril -e "ssh -p 2222" --files-from - -0 . $DESTPATH
|
||||||
|
git archive --format tar.gz --prefix 8bitworkshop- HEAD tools/ > release/8bitworkshop-tools.tgz
|
||||||
|
#rsync --stats -arilvz -e "ssh -p 2222" ./mame $DESTPATH/
|
||||||
|
echo "Done."
|
6
scripts/sync-staging.sh
Executable file
6
scripts/sync-staging.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
DESTPATH=$RSYNC_PATH/staging/
|
||||||
|
git ls-files -z | rsync --stats --exclude '.*' --exclude 'scripts/*' --exclude=node_modules -aril -e "ssh -p 2222" --files-from - -0 . $DESTPATH
|
||||||
|
git archive --format tar.gz --prefix 8bitworkshop- HEAD tools/ > release/8bitworkshop-tools.tgz
|
||||||
|
rsync --stats -arilvz -e "ssh -p 2222" ./mame $DESTPATH/
|
5
scripts/sync-tools.sh
Executable file
5
scripts/sync-tools.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ./scripts/env.sh
|
||||||
|
DESTPATH=$RSYNC_PATH/
|
||||||
|
rsync --stats -arilv -e "ssh -p 2222" ./release/ $DESTPATH/release
|
28
scripts/sync-version-prod.sh
Executable file
28
scripts/sync-version-prod.sh
Executable file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ./scripts/env.sh
|
||||||
|
VERSION=`git tag | tail -1`
|
||||||
|
#VERSION=`git tag -l HEAD`
|
||||||
|
if [ "$VERSION" == "" ]; then
|
||||||
|
echo "No version at HEAD! Tag it first!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
DESTPATH=$RSYNC_PATH/v$VERSION
|
||||||
|
DEVPATH=/var/www/8bitworkshop.com/dev
|
||||||
|
TMPDIR=/tmp/8bitws/$VERSION
|
||||||
|
grep "var VERSION" redir.html
|
||||||
|
echo "Upload version $VERSION to production? (edited redir.html?)"
|
||||||
|
read
|
||||||
|
echo "Listing submodules..."
|
||||||
|
SUBMODS=`git submodule | cut -d ' ' -f 3`
|
||||||
|
echo "Extracting to $TMPDIR..."
|
||||||
|
rm -fr $TMPDIR
|
||||||
|
mkdir -p $TMPDIR
|
||||||
|
git archive $VERSION | tar x -C $TMPDIR
|
||||||
|
echo "Copying to $DESTPATH..."
|
||||||
|
rsync --stats --exclude '.*' --exclude 'scripts/*' --exclude=node_modules --copy-dest=$DEVPATH -aril -e "ssh -p 2222" $TMPDIR/ $SUBMODS $DESTPATH
|
||||||
|
rsync -a -e "ssh -p 2222" redir.html $DESTPATH/../index.html
|
||||||
|
#git ls-files -z |
|
||||||
|
git archive --format tar.gz --prefix 8bitworkshop- HEAD tools/ > release/8bitworkshop-tools.tgz
|
||||||
|
#rsync --stats -arilvz -e "ssh -p 2222" ./mame $DESTPATH/
|
||||||
|
echo "Done."
|
Reference in New Issue
Block a user