Compatibility GNU/BSD, fix #20

Changed `sed -r` to `sed -E`. OSX does not support `sed -r` while
FreeBSD does. GNU sed seems to support `sed -E` even if it is not
in the man page.
Changed install command.
This commit is contained in:
Antonin Décimo
2015-07-06 12:19:33 +02:00
parent d4291daf92
commit a078106148
3 changed files with 13 additions and 13 deletions

View File

@@ -93,7 +93,7 @@ fi
cd "$TEMP"
# TODO: There might be a problem here if the filename contains weird characters.
find "usr" -type f -exec md5sum {} \; | sed -r "s/^([0-9a-f]{32} )/\1\//g" > "$TEMP/DEBIAN/md5sums"
find "usr" -type f -exec md5sum {} \; | sed -E "s/^([0-9a-f]{32} )/\1\//g" > "$TEMP/DEBIAN/md5sums"
cd "$PROJECT_DIR"
fakeroot dpkg-deb -b "$TEMP" "$RELEASE_DIR/$IDENTITY-${GAME_VERSION}_all.deb"