clean correct directory

This commit is contained in:
Gwenhael Le Moine 2022-03-03 10:44:46 +01:00
parent 544f5856c7
commit 805dd1d02b
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
43 changed files with 66 additions and 68 deletions

View file

@ -14,7 +14,7 @@ OUTPUT=${OUTPUT:-/tmp}
set -e # Exit on most errors
rm -fr $TMP/$PRGNAM-$VERSION $PKG
rm -fr $TMP/$PRGNAM $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@ -28,12 +28,11 @@ make prefix=$PKG/usr mandir=$PKG/usr/man
# Racket also has a 'scribble' binary in /usr/bin
# Scribble's scribble is in /usr/games but Racket's steal its place in $PATH
( cd $PKG/usr/games/
ln -s scribble scribble-scrabble
)
( cd $PKG/usr/man/man6/
ln -s scribble.6.gz scribble-scrabble.6.gz
)
cd $PKG/usr/games/
ln -s scribble scribble-scrabble
cd $PKG/usr/man/man6/
ln -s scribble.6.gz scribble-scrabble.6.gz
chmod -R o-w $PKG
chown -R root:root $PKG/*

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -20,7 +20,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -21,7 +21,7 @@ PREFIX=/usr
SLCKFLAGS=" -O "
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-*
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG
@ -29,8 +29,8 @@ mkdir -p $PKG
cd $TMP
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
cp -R $REPOSITORY $TMP/$PRGNAM
cd $TMP/$PRGNAM
[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1)
[ "x$VERSION" == "x" ] && VERSION=trunk
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -18,7 +18,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -21,7 +21,7 @@ PREFIX=/usr
SLCKFLAGS=" -O "
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-*
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG
@ -29,8 +29,8 @@ mkdir -p $PKG
cd $TMP
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
cp -R $REPOSITORY $TMP/$PRGNAM
cd $TMP/$PRGNAM
[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1)
[ "x$VERSION" == "x" ] && VERSION=trunk
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -18,7 +18,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -20,7 +20,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
mkdir -p $TMP
# cleaning
rm -fr $PKG
rm -fr $PKG $TMP/$PRGNAM
# mise en place
cd $TMP
@ -39,14 +39,14 @@ cd $TMP/$PRGNAM
mkdir -p $PKG$PREFIX/libexec/$PRGNAM
cp -a * $PKG$PREFIX/libexec/$PRGNAM
mkdir -p $PKG$PREFIX/{bin,doc/$PRGNAM-$VERSION}
mkdir -p $PKG$PREFIX/{bin,doc/$PRGNAM}
cat <<EOF > $PKG$PREFIX/bin/$PRGNAM
#!/bin/bash
cd $PREFIX/libexec/$PRGNAM
./$PRGNAM \$@
EOF
chmod +x $PKG$PREFIX/bin/$PRGNAM
( cd $PKG$PREFIX/doc/$PRGNAM-$VERSION
( cd $PKG$PREFIX/doc/$PRGNAM
ln -s ../libexec/$PRGNAM/readme.html
ln -s ../libexec/$PRGNAM/license.txt
)
@ -62,7 +62,7 @@ $PRGNAM: full-featured library. Factor runs on all common platforms and Factor
$PRGNAM: applications are portable between them. Factor can deploy stand-alone
$PRGNAM: applications on all platforms.
$PRGNAM:
$PRGNAM: see $PREFIX/doc/$PRGNAM-$VERSION
$PRGNAM: see $PREFIX/doc/$PRGNAM
$PRGNAM:
$PRGNAM: http://factorcode.org/
$PRGNAM:

View file

@ -20,7 +20,7 @@ PREFIX=/usr
SLCKFLAGS=" -O "
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-*
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG
@ -28,8 +28,8 @@ mkdir -p $PKG
cd $TMP
[ ! -e $REPOSITORY ] && git clone https://git.savannah.gnu.org/git/gforth.git $REPOSITORY
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
cp -R $REPOSITORY $TMP/$PRGNAM
cd $TMP/$PRGNAM
[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1)
[ "x$VERSION" == "x" ] && VERSION=trunk
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION

View file

@ -21,7 +21,7 @@ PREFIX=/usr
SLCKFLAGS=" -O "
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-*
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG
@ -31,8 +31,8 @@ cd $TMP
cd $REPOSITORY
git pull --all
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
cp -R $REPOSITORY $TMP/$PRGNAM
cd $TMP/$PRGNAM
[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1)
[ "x$VERSION" == "x" ] && VERSION=trunk
[ "x$VERSION" == "xdevelop" ] && git checkout develop && VERSION=trunk

View file

@ -21,7 +21,7 @@ PREFIX=/usr
SLCKFLAGS=" -O "
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-*
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG
@ -29,8 +29,8 @@ mkdir -p $PKG
cd $TMP
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
cp -R $REPOSITORY $TMP/$PRGNAM
cd $TMP/$PRGNAM
[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1)
[ "x$VERSION" == "x" ] && VERSION=trunk
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -21,7 +21,7 @@ PREFIX=/usr
SLCKFLAGS=" -O "
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-*
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG
@ -29,8 +29,8 @@ mkdir -p $PKG
cd $TMP
[ ! -e $REPOSITORY ] && git clone --recursive https://github.com/${GITHUB_REPO} $REPOSITORY
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
cp -R $REPOSITORY $TMP/$PRGNAM
cd $TMP/$PRGNAM
[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1)
[ "x$VERSION" == "x" ] && VERSION=trunk
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION

View file

@ -22,7 +22,7 @@ EMACS=$(basename $(ls /usr/bin/emacs-2*))
EMACS_VERSION=$(echo "$EMACS" | grep -o "\-[0-9\.]*\-" | tr -d - | head -n1)
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -21,7 +21,7 @@ SLCKFLAGS=""
REQUIRES="lua luarocks lgi"
# nettoyage préalable
# nettoyage prealable
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -18,7 +18,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -19,7 +19,7 @@ REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
PREFIX=${PREFIX:-/usr}
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $PKG

View file

@ -21,8 +21,7 @@ REPOSITORY=/home/installs/SlackBuilds/_repositories/$PRGNAM
PREFIX=/usr
# Cleaning
rm -fr $TMP/$PRGNAM-$VERSION
rm -fr $PKG
rm -fr $PKG $TMP/$PRGNAM
mkdir -p $TMP
[ ! -e $REPOSITORY ] && git clone "http://repo.or.cz/r/cboard.git" $REPOSITORY
@ -30,8 +29,8 @@ cd $REPOSITORY
git pull --all
# Preparation
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
cp -R $REPOSITORY $TMP/$PRGNAM
cd $TMP/$PRGNAM
[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1)
[ "x$VERSION" == "x" ] && VERSION=trunk

View file

@ -73,8 +73,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mv $PKG/usr/share/man $PKG/usr/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/usr/doc/$PRGNAM
cp -a $DOCS $PKG/usr/doc/$PRGNAM
mkdir -p $PKG/install