first commit
This commit is contained in:
10
utils/count.sh
Executable file
10
utils/count.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# Count the total number of lines
|
||||
|
||||
cd server/
|
||||
echo "Python:"
|
||||
wc -l app.py procs.py db.py bundle.py | awk 'END {print $1}'
|
||||
|
||||
cd static/dashboard/js/main/
|
||||
echo "Javascript:"
|
||||
find . -type f -name "*.js" -exec wc -l {} \; | awk '{t+=$1} END {print t}'
|
13
utils/tag.rb
Executable file
13
utils/tag.rb
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require "git"
|
||||
require "json"
|
||||
|
||||
file = File.read("server/manifest.json")
|
||||
manifest = JSON.parse(file)
|
||||
version = manifest["version"]
|
||||
name = "v#{version}"
|
||||
repo = Git.open(".")
|
||||
repo.add_tag(name)
|
||||
repo.push("origin", name)
|
||||
puts "Created tag: #{name}"
|
Reference in New Issue
Block a user