Is there a way installpkg to skip first directory in package ?
by gildbg from LinuxQuestions.org on (#6KVK9)
Hello everyone,
I'm compile and create the tgz package file with: cmake --build . --target package and the file structure inside the tgz package file is:
rocm-core-6.0.2.60002-Linux -> opt -> rocm-6.0.2 -> other_sub_dirs
My question is: Is there a easy way without to extract and repack again to tell on the installpkg to skip the first dir ? Or some other way to convert the package without manual to decompress and recreate again. Something like patch -p1
Or may be some how to tell on cmake to skip the first dir. I don't have much experience with cmake
Thanks in advice
I'm compile and create the tgz package file with: cmake --build . --target package and the file structure inside the tgz package file is:
rocm-core-6.0.2.60002-Linux -> opt -> rocm-6.0.2 -> other_sub_dirs
My question is: Is there a easy way without to extract and repack again to tell on the installpkg to skip the first dir ? Or some other way to convert the package without manual to decompress and recreate again. Something like patch -p1
Or may be some how to tell on cmake to skip the first dir. I don't have much experience with cmake
Thanks in advice