chore: prettier shell stuff

This commit is contained in:
41666 2020-10-11 19:10:05 -04:00
parent a9af2d10bd
commit c7afd84e1e
12 changed files with 204 additions and 341 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
cd `dirname $(realpath $0)`
cd $(dirname $(realpath $0))
cd ..
bazel run //:gazelle
@ -9,6 +9,6 @@ bazel run //:gazelle
sleep 0.5
echo "Fixing go_dependencies.bzl..."
head -n2 ../go_dependencies.bzl > ../go_dependencies.bzl~
tail -n+3 ../go_dependencies.bzl | sed '/^$/d' >> ../go_dependencies.bzl~
mv ../go_dependencies.bzl~ ../go_dependencies.bzl
head -n2 ../go_dependencies.bzl >../go_dependencies.bzl~
tail -n+3 ../go_dependencies.bzl | sed '/^$/d' >>../go_dependencies.bzl~
mv ../go_dependencies.bzl~ ../go_dependencies.bzl

View file

@ -1,4 +1,4 @@
load("@rules_typescript_proto//:index.bzl", "typescript_proto_library")
load("//src/ts-protoc-gen/rules:index.bzl", "typescript_proto_library")
load("@npm//@bazel/typescript:index.bzl", "ts_library")
def _generalize_pb_imports(name, srcs = [], grpc = False):

View file

@ -2,4 +2,4 @@
echo "STABLE_GIT_COMMIT $(git rev-parse --short HEAD)"
echo "STABLE_GIT_BRANCH $(git rev-parse --abbrev-ref HEAD)"
echo "STABLE_URL_SAFE_TAG $(git rev-parse --abbrev-ref HEAD | tr '/' '-')"
echo "BUILD_DATE $(date -Iseconds)"
echo "BUILD_DATE $(date -Iseconds)"