xargs strip --strip-unneeded 2> /dev/null
)
-# Avoid overwriting share/gnupg/ files, from the original gnupg package
+# Avoid overwriting share/gnupg/ files, from Slackware's gnupg package
mv -f "$PKG/$PREFIX/share/gnupg" "$PKG/$PREFIX/share/gnupg2"
# Install gpg2, gpgv2, gpg-agent, and gpgsm already suid root
)
fi
-# Install documentation and examples
+# Install documentation
DOCS="*.TXT doc/gtkwave.odt examples"
mkdir -p "$PKG/$PREFIX/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR
cp -a $DOCS "$PKG/$PREFIX/doc/$PKG_NAME-$PKG_VERSION"
)
fi
-# Install documentation and examples
+# Install documentation
mkdir -p "$PKG/$PREFIX/doc/$PKG_NAME-$PKG_VERSION/vvp" || exit $ERROR_MKDIR
cp -a COPYING INSTALL *.txt examples "$PKG/$PREFIX/doc/$PKG_NAME-$PKG_VERSION"
cp -a vvp/*.txt vvp/examples "$PKG/$PREFIX/doc/$PKG_NAME-$PKG_VERSION/vvp"
xargs strip --strip-unneeded 2> /dev/null
)
-# Install documentation and examples
+# Install documentation
DOCS="LIMITATIONS README *.txt"
mkdir -p "$PKG/$PREFIX/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR
cp -a $DOCS "$PKG/$PREFIX/doc/$PKG_NAME-$PKG_VERSION"
config() {
NEW="\$1"
OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)"
- # If there's no config file by that name, mv it over
+ # If there's no config file by that name, mv it over:
if [ ! -r \$OLD ]; then
mv \$NEW \$OLD
elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then
- # Toss the redundant copy
+ # toss the redundant copy
rm \$NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...