mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-14 18:36:18 +02:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cb25d50913 | ||
![]() |
c51cc8d365 | ||
![]() |
e64c1d33eb | ||
![]() |
19f3a868f4 | ||
![]() |
f1ee5208ed |
@@ -36,11 +36,11 @@ if [ -d "repos/${1}" ]; then
|
|||||||
fi
|
fi
|
||||||
if [ ! -d repos ]; then
|
if [ ! -d repos ]; then
|
||||||
mkdir repos
|
mkdir repos
|
||||||
svn add repos
|
svn add -q repos
|
||||||
fi
|
fi
|
||||||
if [ ! -d "repos/${1}" ]; then
|
if [ ! -d "repos/${1}" ]; then
|
||||||
mkdir "repos/${1}"
|
mkdir "repos/${1}"
|
||||||
svn add "repos/${1}"
|
svn add -q "repos/${1}"
|
||||||
fi
|
fi
|
||||||
known_files=$(svn ls "trunk")
|
known_files=$(svn ls "trunk")
|
||||||
for file in $known_files; do
|
for file in $known_files; do
|
||||||
|
40
commitpkg
40
commitpkg
@@ -108,29 +108,31 @@ if [ "$1" = "-a" ]; then
|
|||||||
shift 2
|
shift 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n 'committing changes to trunk...'
|
if [ -n "$(svn status -q)" ]; then
|
||||||
msgtemplate="upgpkg: $pkgbase $(get_full_version ${epoch:-0} $pkgver $pkgrel)
|
echo -n 'committing changes to trunk...'
|
||||||
|
msgtemplate="upgpkg: $pkgbase $(get_full_version ${epoch:-0} $pkgver $pkgrel)
|
||||||
|
|
||||||
"
|
"
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
svn commit -q -m "${msgtemplate}${1}" || abort
|
svn commit -q -m "${msgtemplate}${1}" || abort
|
||||||
else
|
|
||||||
msgfile="$(mktemp)"
|
|
||||||
echo "$msgtemplate" > "$msgfile"
|
|
||||||
if [ -n "$SVN_EDITOR" ]; then
|
|
||||||
$SVN_EDITOR "$msgfile"
|
|
||||||
elif [ -n "$VISUAL" ]; then
|
|
||||||
$VISUAL "$msgfile"
|
|
||||||
elif [ -n "$EDITOR" ]; then
|
|
||||||
$EDITOR "$msgfile"
|
|
||||||
else
|
else
|
||||||
vi "$msgfile"
|
msgfile="$(mktemp)"
|
||||||
|
echo "$msgtemplate" > "$msgfile"
|
||||||
|
if [ -n "$SVN_EDITOR" ]; then
|
||||||
|
$SVN_EDITOR "$msgfile"
|
||||||
|
elif [ -n "$VISUAL" ]; then
|
||||||
|
$VISUAL "$msgfile"
|
||||||
|
elif [ -n "$EDITOR" ]; then
|
||||||
|
$EDITOR "$msgfile"
|
||||||
|
else
|
||||||
|
vi "$msgfile"
|
||||||
|
fi
|
||||||
|
[ -s "$msgfile" ] || abort
|
||||||
|
svn commit -q -F "$msgfile" || abort
|
||||||
|
unlink "$msgfile"
|
||||||
fi
|
fi
|
||||||
[ -s "$msgfile" ] || abort
|
echo 'done'
|
||||||
svn commit -q -F "$msgfile" || abort
|
|
||||||
unlink "$msgfile"
|
|
||||||
fi
|
fi
|
||||||
echo 'done'
|
|
||||||
|
|
||||||
declare -a uploads
|
declare -a uploads
|
||||||
|
|
||||||
|
@@ -29,9 +29,9 @@ CHOST="i686-pc-linux-gnu"
|
|||||||
#-- Exclusive: will only run on i686
|
#-- Exclusive: will only run on i686
|
||||||
# -march (or -mcpu) builds exclusively for an architecture
|
# -march (or -mcpu) builds exclusively for an architecture
|
||||||
# -mtune optimizes for an architecture, but builds for whole processor family
|
# -mtune optimizes for an architecture, but builds for whole processor family
|
||||||
CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
|
CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
||||||
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe"
|
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
||||||
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
|
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
#MAKEFLAGS="-j2"
|
#MAKEFLAGS="-j2"
|
||||||
|
|
||||||
|
@@ -29,9 +29,9 @@ CHOST="x86_64-unknown-linux-gnu"
|
|||||||
#-- Exclusive: will only run on x86_64
|
#-- Exclusive: will only run on x86_64
|
||||||
# -march (or -mcpu) builds exclusively for an architecture
|
# -march (or -mcpu) builds exclusively for an architecture
|
||||||
# -mtune optimizes for an architecture, but builds for whole processor family
|
# -mtune optimizes for an architecture, but builds for whole processor family
|
||||||
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
|
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
||||||
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
|
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
||||||
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
|
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
#MAKEFLAGS="-j2"
|
#MAKEFLAGS="-j2"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user