summaryrefslogtreecommitdiffstats
path: root/src/opkbuild
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-21 12:26:23 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-21 12:26:23 (EST)
commit4082229065787e8a803748c886c8db35479ef2b3 (patch)
treeacfca1cce82af2a1d49e7eb5b1f8e12e80e38792 /src/opkbuild
parent0d6daadabc9971f38e665c6cd798de78e45391ab (diff)
Do EVERYTHING in tmp.
Diffstat (limited to 'src/opkbuild')
-rw-r--r--src/opkbuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/opkbuild b/src/opkbuild
index f863ee9..1f0317b 100644
--- a/src/opkbuild
+++ b/src/opkbuild
@@ -36,11 +36,13 @@ if [ "$(cat format)" != '1.0' ]; then
exit 1
fi
+mkdir tmp
+cd tmp
+
# Build *-src package.
srcpkg=$(oh_get_field Source)
version=$(oh_get_field Version)
-mkdir -p tmp/${srcpkg}-src/usr/src/${srcpkg}_${version}
-cd tmp
+mkdir -p ${srcpkg}-src/usr/src/${srcpkg}_${version}
for file in ../*; do
case ${file} in
../tmp)