You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/scripts
Jeffery To f96cfe019a build: Fix directory symlinks not removed when cleaning STAGING_DIR
Currently, a symbolic link whose target is a directory will not be
removed when cleaning packages from STAGING_DIR.

In the first cleaning pass in scripts/clean-package.sh, the -f test for
a directory symlink returns false (because the link target is a
directory) and so the symlink is not removed.

In the second pass, the -d test returns true for a directory symlink,
but the symlink is not removed by rmdir because rmdir only removes
(real) directories.

This updates clean-package.sh to remove all non-directories (including
symbolic links) in the first pass.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
4 years ago
..
config build: fix xconfig target 5 years ago
flashing scripts/jungo-image: convert to Python 3 with 2-to-3 5 years ago
arm-magic.sh scripts/arm-magic.sh: switch to /bin/sh 4 years ago
brcmImage.pl merge: targets: update image generation and targets 6 years ago
bundle-libraries.sh scripts: bundle-libraries: fix logic flaw 6 years ago
checkpatch.pl merge: base: update base-files and basic config 6 years ago
clang-gcc-wrapper build: fix build on Mac OS X 10.9 11 years ago
clean-package.sh build: Fix directory symlinks not removed when cleaning STAGING_DIR 4 years ago
cleanfile build: remove absolute path to perl and replace with /usr/bin/env perl 7 years ago
cleanpatch build: remove absolute path to perl and replace with /usr/bin/env perl 7 years ago
combined-ext-image.sh combined-ext-image.sh: generate image in temp dir 6 years ago
combined-image.sh scripts: make all scripts executable 7 years ago
config.guess scripts: update config.guess and config.sub 6 years ago
config.rpath add config.rpath and link it in autotools.mk if missing, some packages might need it, especially users of lib-link.m4 or iconv.m4 13 years ago
config.sub scripts: update config.guess and config.sub 6 years ago
deptest.sh scripts: avoid hard-coded paths in scripts 8 years ago
diffconfig.sh scripts/diffconfig.sh: fix output if TARGET_PER_DEVICE_ROOTFS is set 8 years ago
dl_cleanup.py dl_cleanup: Fix linux blacklist 9 years ago
dl_github_archive.py scripts/dl_github_archive.py: fix python3 str, bytes confusion 5 years ago
download.pl scripts/dowload.pl: add archive.apache.org to apache mirror list 4 years ago
env scripts/env: replace -a and -o with &&/|| 4 years ago
ext-toolchain.sh scripts: Probe external toolchains for libthread-db 7 years ago
feeds scripts/feeds: fix accepting "-" in feed type string 5 years ago
fixup-makefile.pl fixup-makefile.pl: fixup when PKG_SOURCE is defined elsewhere 6 years ago
functions.sh images: fix boot failures on NAND with small sub pages 5 years ago
gen-dependencies.sh scripts/gen-dependencies.sh: use /bin/sh 4 years ago
gen_image_generic.sh scripts/gen_image_generic.sh: replace deprecated backticks with $() 4 years ago
get_source_date_epoch.sh scripts: get_source_date_epoch.sh: fix mercurial support, add mtime fallback 7 years ago
getver.sh scripts/getver.sh: append short git hash based on upstream commit 7 years ago
ipkg-build script: ipkg-build: honour $SOURCE_DATE_EPOCH 6 years ago
ipkg-make-index.sh scripts: ipkg-make-index.sh: dereference symbolic links 5 years ago
ipkg-remove scripts: ipkg-remove: handle existing .ipk files without SourceName field 5 years ago
json_add_image_info.py build: create JSON files containing image info 5 years ago
kconfig.pl treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
linksys-image.sh build: add a script for generating Linksys factory images 5 years ago
make-ipkg-dir.sh branding: add LEDE branding 8 years ago
md5sum improve support for building on mac os x by improving detection of missing components 15 years ago
metadata.pm build: allow overriding default selection state for devices 5 years ago
mkhash.c build: add a small standalone utility for calculating md5/sha256 hash 7 years ago
mkits-qsdk-ipq-image.sh build: add helpers for generating QSDK sysupgrade compatible images 5 years ago
mkits.sh scripts/mkits.sh: replace legacy backticks with $() 4 years ago
om-fwupgradecfg-gen.sh ar71xx: Skip more hashed blocks for OM2P(-HS) 64k variant 6 years ago
package-metadata.pl metadata: handle ABI version rebuild tracking for transient dependencies 5 years ago
pad_image scripts: avoid hard-coded paths in scripts 8 years ago
patch-kernel.sh scripts/patch-kernel.sh: remove -E flag to preserve empty files touched by patches 9 years ago
patch-specs.sh toolchain: Add GCC 9.1.0 release 5 years ago
portable_date.sh scripts: fix GNU data invocation 8 years ago
qemustart scripts/qemustart: add notes on adding new options 5 years ago
redboot-script.pl scripts: avoid hard-coded paths in scripts 8 years ago
relink-lib.sh base-files: relink uclibc and libgcc libraries to remove leftovers of the statically linked initial libgcc saves a few kb and gets rid of unused not exported functions as well should also improve the reliability of mklibs 13 years ago
remote-gdb Fix handling of BUILD_SUFFIX in remote-gdb script 5 years ago
rstrip.sh scripts: rstrip.sh: allow rpath with sole $ORIGIN token 5 years ago
sign_images.sh build: add script to sign packages 5 years ago
slugimage.pl scripts: Replace obsolete POSIX tmpnam in slugimage.pl with File::Temp function 6 years ago
srecimage.pl treewide: replace jow@openwrt.org with jo@mein.io 8 years ago
strip-kmod.sh scripts/strip-kmod.sh: harmonize leading whitespaces 4 years ago
symlink-tree.sh scripts/symlink-tree.sh: use /bin/sh 4 years ago
sysupgrade-tar.sh images: fix boot failures on NAND with small sub pages 5 years ago
target-metadata.pl build: allow overriding default selection state for devices 5 years ago
time.pl scripts: time.pl: Don't print the time on stderr 5 years ago
timestamp.pl fix timestamp checks for build system paths which have '.svn' in their directory name 14 years ago
ubinize-image.sh ubinize-image: set image sequence from SOURCE_DATE_EPOCH 5 years ago