1
0
mirror of https://github.com/renbaoshuo/s2oj-gcc.git synced 2024-12-27 04:01:54 +00:00

chore: add program prefix

This commit is contained in:
Baoshuo Ren 2023-11-18 16:40:07 +08:00
parent e092407ee9
commit a381b60a03
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -1,5 +1,6 @@
#!/bin/bash
GIT_COMMIT=$(git rev-parse --short HEAD)
CURRENT_DIR=$(pwd)
GCC_VERSION=$(cat GCC_VERSION)
GCC_GIT="git://gcc.gnu.org/git/gcc.git"
@ -36,11 +37,11 @@ echo "===> Configuring GCC..."
build_cd ${CURRENT_DIR}/build
${GCC_SRC}/configure -v \
--enable-languages=c,c++ \
--prefix=/usr \
--program-prefix=s2oj- \
--build=x86_64-linux-gnu \
--host=x86_64-linux-gnu \
--target=x86_64-linux-gnu \
--with-pkgversion="s2oj-gcc-$GCC_VERSION~1baoshuo1"
--with-pkgversion="s2oj-gcc $GCC_VERSION-1baoshuo1~${GIT_COMMIT}"
# Build GCC
echo "===> Building GCC..."
@ -53,7 +54,7 @@ build_cd ${CURRENT_DIR}/deb
mkdir -p DEBIAN
cat << EOF > DEBIAN/control
Package: s2oj-gcc
Version: $GCC_VERSION~1baoshuo1
Version: $GCC_VERSION-1baoshuo1
Section: base
Priority: optional
Architecture: amd64