aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/linux_gen.sh
blob: c4de59ce0ca0fa526a52b0d864750cd0966a9a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
# Copyright 2020 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

set -eu

echo -en '// Code generated by pkg/build/linux.go. DO NOT EDIT.\n\n' > linux_generated.go
echo -en 'package build\n\n' >> linux_generated.go
echo -en 'const createImageScript = `#!/bin/bash\n' >> linux_generated.go
cat ../../tools/create-gce-image.sh | egrep -v '^\s*#' >> linux_generated.go
echo -en '`\n\n' >> linux_generated.go