summaryrefslogtreecommitdiff
path: root/deprecated-ngircd/scripts/create_rootfs.sh
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-11-05 15:34:49 +0800
committerMistivia <i@mistivia.com>2025-11-05 15:34:49 +0800
commit95caa5bdaff4e5b5a924a9141b51c756a57abc0f (patch)
treebb0ff8eddfe8a06558317464cea14405e76b7ebc /deprecated-ngircd/scripts/create_rootfs.sh
parent8532af453ccc9071ddc919b063788d6b496af991 (diff)
remove deprecated
Diffstat (limited to 'deprecated-ngircd/scripts/create_rootfs.sh')
-rwxr-xr-xdeprecated-ngircd/scripts/create_rootfs.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/deprecated-ngircd/scripts/create_rootfs.sh b/deprecated-ngircd/scripts/create_rootfs.sh
deleted file mode 100755
index 4cf1740..0000000
--- a/deprecated-ngircd/scripts/create_rootfs.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-copy_with_path() {
- if [ "$#" -ne 2 ]; then
- echo "Usage: copy_with_path_creation <source_file> <destination_base_path>"
- return 1
- fi
-
- local source_file="$1"
- local destination_base_path="$2"
-
- local source_dir=$(dirname "$source_file")
-
- local destination_dir="${destination_base_path}${source_dir}"
-
- if mkdir -p "$destination_dir"; then
- echo "Created directory: $destination_dir"
- if cp "$source_file" "$destination_dir/"; then
- echo "Copied file: $source_file to $destination_dir/"
- return 0
- else
- echo "Error: Failed to copy file $source_file to $destination_dir/"
- return 1
- fi
- else
- echo "Error: Failed to create directory $destination_dir"
- return 1
- fi
-}
-
-if [ "$#" -ne 2 ]; then
- echo "Usage: copyldd <target_exec> <dest_dir>"
- exit 1
-fi
-
-for f in $(ldd $1 | grep "=>" | awk '{print $3}') ; do
- copy_with_path $f $2
-done
-
-cp -r $2/usr/lib64 $2/