Move shell and python scripts to scripts/ directory
Change-Id: Icdff44a54d14ddfc2266d99cf0578a8105716918
diff --git a/bootstrap.bash b/bootstrap.bash
index 62c429c..e48f480 100755
--- a/bootstrap.bash
+++ b/bootstrap.bash
@@ -8,7 +8,7 @@
echo "error: To use BUILDDIR, run from the source directory"
exit 1
fi
- export BUILDDIR=$("${ORIG_SRCDIR}/build/soong/reverse_path.py" "$ORIG_SRCDIR")
+ export BUILDDIR=$("${ORIG_SRCDIR}/build/soong/scripts/reverse_path.py" "$ORIG_SRCDIR")
cd $ORIG_SRCDIR
fi
if [[ -z "$BUILDDIR" ]]; then
@@ -45,7 +45,7 @@
exit 1
fi
- export SRCDIR_FROM_BUILDDIR=$(build/soong/reverse_path.py "$BUILDDIR")
+ export SRCDIR_FROM_BUILDDIR=$(build/soong/scripts/reverse_path.py "$BUILDDIR")
sed -e "s|@@BuildDir@@|${BUILDDIR}|" \
-e "s|@@SrcDirFromBuildDir@@|${SRCDIR_FROM_BUILDDIR}|" \
diff --git a/cc/builder.go b/cc/builder.go
index f67f9bd..ca8bc75 100644
--- a/cc/builder.go
+++ b/cc/builder.go
@@ -101,7 +101,7 @@
},
"objcopyCmd", "prefix")
- copyGccLibPath = pctx.SourcePathVariable("copyGccLibPath", "build/soong/copygcclib.sh")
+ copyGccLibPath = pctx.SourcePathVariable("copyGccLibPath", "build/soong/scripts/copygcclib.sh")
copyGccLib = pctx.StaticRule("copyGccLib",
blueprint.RuleParams{
diff --git a/copygcclib.sh b/scripts/copygcclib.sh
similarity index 100%
rename from copygcclib.sh
rename to scripts/copygcclib.sh
diff --git a/reverse_path.py b/scripts/reverse_path.py
similarity index 100%
rename from reverse_path.py
rename to scripts/reverse_path.py
diff --git a/reverse_path_test.py b/scripts/reverse_path_test.py
old mode 100644
new mode 100755
similarity index 97%
rename from reverse_path_test.py
rename to scripts/reverse_path_test.py
index c5bb8e6..5577693
--- a/reverse_path_test.py
+++ b/scripts/reverse_path_test.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
from __future__ import print_function
import os