forked from tgc/buildpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewpkg
More file actions
executable file
·32 lines (26 loc) · 742 Bytes
/
newpkg
File metadata and controls
executable file
·32 lines (26 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/didbs/current/bin/bash
#
# A simple script to create a sandbox for a new package
#
# params: $1=topdir ie. bash
#
. ${BUILDPKG_SCRIPTS}/buildpkg.functions
REQ_DIRS="stage src meta"
topdir=$1
if [ -z "$topdir" ]; then
error $E_MISSING_ARGS
else
setdir "$buildpkgbase"
fi
echo "Creating sandbox for $topdir"
${__mkdir} "$topdir"
for i in $REQ_DIRS
do
${__mkdir} $topdir/$i
done
${__sed} -e "s;/bin/bash;$__bash;g" $buildpkgscripts/build.sh.template > $topdir/build.sh
${__cp} $buildpkgscripts/pkgdef.template $topdir/meta/pkgdef
${__cp} $buildpkgscripts/relnotes.template $topdir/meta/relnotes
${__cp} $buildpkgscripts/changelog.template $topdir/meta/ChangeLog
# Make build script executable
chmod 755 $topdir/build.sh