summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-19 11:49:30 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-19 11:49:30 (EST)
commit77d846f54fef44bf574e5d434a304e43d2b72d23 (patch)
tree322f53e10cf5d2afd3ea4e9180121e99b03f9d6b
parent91f10c23747d59118fe87f18b77609418e28ebd4 (diff)
Simplify build file with theoretical "opkhelper".
The build helper software package will be called "opkhelper" and will provide scripts inspired by Joey Hess's "debhelper" for Debian.
-rwxr-xr-xbuild.example18
1 files changed, 7 insertions, 11 deletions
diff --git a/build.example b/build.example
index 9040a47..a3cffa4 100755
--- a/build.example
+++ b/build.example
@@ -39,18 +39,14 @@ libfoo.42.buildstamp:
cd ..
# Make a debugging binary, strip the regular one of debugging symbols, and
# add to the regular binary a link directing GDB to the debugging binary.
- objcopy --only-keep-debug dest/usr/lib/libfoo.so.42 \
- dest/usr/lib/debug/usr/lib/libfoo.so.42
- strip -g dest/usr/lib/libfoo.so.42
- objcopy --add-gnu-debuglink=/usr/lib/debug/usr/lib/libfoo.so.42 \
- dest/usr/lib/libfoo.so.42
+ oh-strip -g /usr/lib/libfoo.so.42
# Move files from 'dest' into a binary package.
- opk-installfiles libfoo.42
- opk-installfiles libfoo.42-dbg
- opk-installfiles libfoo.42-dev
+ oh-installfiles libfoo.42
+ oh-installfiles libfoo.42-dbg
+ oh-installfiles libfoo.42-dev
# Pack each binary package.
- opk-pack libfoo.42
- opk-pack libfoo.42-dbg
- opk-pack libfoo.42-dev
+ oh-buildopk libfoo.42
+ oh-buildopk libfoo.42-dbg
+ oh-buildopk libfoo.42-dev
# Touch the build stamp to prevent these packages from being built again.
touch libfoo.42.buildstamp