From 494a833987111de518e1c8c9c68ae0ee01a52958 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 28 Aug 2015 14:49:04 +1000 Subject: [PATCH] Add #!/bin/bash to library functions Currently when these files are opened your editor doesn't know what to do with them. Add #!/bin/bash to library functions so that editors, diff-tools, etc can do syntax highlighting. There are other ways to skin this cat, such as renaming to ".sh", adding -* style editor flags, etc. We had this discussion in DevStack too, and came to the conclusion the simplest thing that works for everyone is to just put the #! at the top. Change-Id: I4cf64321e14844696139f5d40e4d719436390b35 --- lib/common-defaults | 1 + lib/common-functions | 2 +- lib/die | 1 + lib/img-defaults | 1 + lib/img-functions | 1 + lib/ramdisk-defaults | 1 + lib/ramdisk-functions | 1 + 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/common-defaults b/lib/common-defaults index e1b57202..ee33eb47 100644 --- a/lib/common-defaults +++ b/lib/common-defaults @@ -1,3 +1,4 @@ +#!/bin/bash # Copyright 2012 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # diff --git a/lib/common-functions b/lib/common-functions index 07d1369b..fdfec48f 100644 --- a/lib/common-functions +++ b/lib/common-functions @@ -1,4 +1,4 @@ -# vim: syntax=sh ts=4 sts=4 sw=2:et +#!/bin/bash # Copyright 2012 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # diff --git a/lib/die b/lib/die index ad0c421a..68a61185 100644 --- a/lib/die +++ b/lib/die @@ -1,3 +1,4 @@ +#!/bin/bash # Copyright 2012 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # diff --git a/lib/img-defaults b/lib/img-defaults index 536d1857..079cec9a 100644 --- a/lib/img-defaults +++ b/lib/img-defaults @@ -1,3 +1,4 @@ +#!/bin/bash # Copyright 2012 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # diff --git a/lib/img-functions b/lib/img-functions index e9b2c229..38c46609 100644 --- a/lib/img-functions +++ b/lib/img-functions @@ -1,3 +1,4 @@ +#!/bin/bash # Copyright 2012 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # diff --git a/lib/ramdisk-defaults b/lib/ramdisk-defaults index 13120f1d..2991ccbb 100644 --- a/lib/ramdisk-defaults +++ b/lib/ramdisk-defaults @@ -1,3 +1,4 @@ +#!/bin/bash # Copyright 2012 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 NTT DOCOMO, INC. # diff --git a/lib/ramdisk-functions b/lib/ramdisk-functions index 95881f3f..e057fd89 100644 --- a/lib/ramdisk-functions +++ b/lib/ramdisk-functions @@ -1,3 +1,4 @@ +#!/bin/bash # Copyright 2012 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 NTT DOCOMO, INC. #