summaryrefslogtreecommitdiffstats
path: root/xorg/debuild/debX11rdp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/debuild/debX11rdp.sh')
-rwxr-xr-xxorg/debuild/debX11rdp.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/xorg/debuild/debX11rdp.sh b/xorg/debuild/debX11rdp.sh
index 3e713926..dd80cbe9 100755
--- a/xorg/debuild/debX11rdp.sh
+++ b/xorg/debuild/debX11rdp.sh
@@ -12,7 +12,8 @@ DESTDIR=$PACKDIR/opt
NAME=x11rdp
sed -i -e "s/DUMMYVERINFO/$VERSION-$RELEASE/" $PACKDIR/DEBIAN/control
-sed -i -e "s/DUMMYDIRINFO/$SRCDIR/" $PACKDIR/DEBIAN/postinst
+# need a different delimiter, since it has a path
+sed -i -e "s,DUMMYDIRINFO,$SRCDIR," $PACKDIR/DEBIAN/postinst
mkdir -p $DESTDIR
cp -Rf $SRCDIR $DESTDIR
@@ -21,4 +22,4 @@ dpkg-deb --build $PACKDIR $PKGDEST/${NAME}_$VERSION-$RELEASE.deb
# revert to initial state
rm -rf $DESTDIR
sed -i -e "s/$VERSION-$RELEASE/DUMMYVERINFO/" $PACKDIR/DEBIAN/control
-sed -i -e "s/$SRCDIR/DUMMYDIRINFO/" $PACKDIR/DEBIAN/postinst
+sed -i -e "s,$SRCDIR,DUMMYDIRINFO," $PACKDIR/DEBIAN/postinst