summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)