RPM packaging: update build scripts

pull/3/head
François Andriot 8 years ago
parent 14b43b6599
commit d7f4f94a48

@ -7,7 +7,7 @@ DIST=""
if [ -r /etc/redhat-release ]; then if [ -r /etc/redhat-release ]; then
read a b c d e f g < /etc/redhat-release read a b c d e f g < /etc/redhat-release
elif [ -r /etc/SuSE-release ]; then elif [ -r /etc/SuSE-release ] || grep -qw "ID=opensuse" "/etc/os-release"; then
a="opensuse" a="opensuse"
fi fi
@ -39,7 +39,11 @@ case $a in
Fedora*) FEDORA="${c}"; DIST=".fc${FEDORA}";; Fedora*) FEDORA="${c}"; DIST=".fc${FEDORA}";;
# Opensuse # Opensuse
opensuse) opensuse)
DIST=".oss$((read l; read a b c; echo ${c//./}) </etc/SuSE-release)" if [ -r "/etc/SuSE-release" ]; then
DIST=".oss$((read l; read a b c; echo ${c//./}) </etc/SuSE-release)"
else
DIST=".oss"
fi
;; ;;
# PCLinuxOS # PCLinuxOS
PCLinuxOS) PCLINUXOS="${c}"; DIST=".pclos${c}";; PCLinuxOS) PCLINUXOS="${c}"; DIST=".pclos${c}";;

@ -28,7 +28,7 @@ else
export TDE_COMPRESS=gzip export TDE_COMPRESS=gzip
fi fi
alias tdep3='(rm -rf ~/tde/tde-tarballs/3.5.13.2; cd ~/tde/tde_v3.5.13-sru; export SUFFIX=0; export COMPRESS=${TDE_COMPRESS:-gzip}; export TDE_REBRAND=1; ./scripts/create_all_tarballs)' alias tdep3='(rm -rf ~/tde/tde-tarballs/3.5.13.2; cd ~/tde/tde_v3.5.13-sru; export SUFFIX=0; export COMPRESS=${TDE_COMPRESS:-gzip}; export TDE_REBRAND=1; ./scripts/create_all_tarballs)'
alias tdep4='(rm -rf ${TDE_TARBALLS}; cd ${TDE_GITBASESRC}; export SUFFIX=0; export COMPRESS=${TDE_COMPRESS:-gzip}; export TDE_REBRAND=1; ./scripts/create_all_tarballs)' alias tdep4='(cd ${TDE_GITBASESRC}; export SUFFIX=0; export COMPRESS=${TDE_COMPRESS:-gzip}; export TDE_REBRAND=1; ./scripts/create_all_tarballs)'
# Build a single package # Build a single package
alias cdp='cd ~/tde/tde-packaging/redhat' alias cdp='cd ~/tde/tde-packaging/redhat'

Loading…
Cancel
Save