fi
# copy package control
-control=$(find src -name $paket.control)
+control=$(find -L src -name $paket.control)
+build_number=${build#*_}
if [ -z "$control" ]
then
echo "warning: control file not found"
echo " this file is necessary for any package production."
else
- sed "s/%BUILD%/$build/" $control |sed "s/%ARCH%/$ARCH/" >$paket.control
+ sed "s/%BUILD%/$build_number/" $control |sed "s/%ARCH%/$ARCH/" >$paket.control
echo "$paket.control written."
# extract version
fi
# check for copy file
-copy=$(find src -name $paket.cp)
+copy=$(find -L src -name $paket.cp)
if [ -n "$copy" ]
then
ln -sf $copy .
fi
# check for installation scripts
-files=$(find src -name $paket.preinst)
-files="$files $(find src -name $paket.postinst)"
-files="$files $(find src -name $paket.prerm)"
-files="$files $(find src -name $paket.postrm)"
+files=$(find -L src -name $paket.preinst)
+files="$files $(find -L src -name $paket.postinst)"
+files="$files $(find -L src -name $paket.prerm)"
+files="$files $(find -L src -name $paket.postrm)"
for file in $files
do
ln -sf $file .
project = $paket
COPY = ./$paket.cp
MAKE_PRE
+ if [ -n "$ARCH" ]
+ then
+ echo "arch = $ARCH" >>make.pre
+ echo "_arch = _${ARCH}" >>make.pre
+ fi
echo "make.pre written."
fi