This is a quick reminder for me and for any developer. When using an SVN, and we want to publish a tarball, usually the name of the SVN is 1.0.0/ and the working directory of the tarball should be project-1.0.0/.
TAR has the --transform directive. The following example takes the original directory 1.0.1/ and packs the source into the signup/ directory.
tar -czvf signup-clear-1.0.1.tar.gz 1.0.1/* --transform s/^1.0.1/signup/
1.0.1/README.txt
1.0.1/signup-config.php-txt
1.0.1/signup-debug.php
1.0.1/signup-domain-verify.php
1.0.1/signup-email-verify.php
1.0.1/signup-language.php
1.0.1/signup.php
1.0.1/signup-process.php
1.0.1/signup-user-verify.php
tar -tvf signup-clear-1.0.1.tar.gz
-rw-r--r-- dieu/dieu 1040 2021-02-14 21:53 signup/README.txt
-rw-r--r-- dieu/dieu 8329 2021-02-14 22:02 signup/signup-config.php-txt
-rw-r--r-- dieu/dieu 62 2021-02-14 21:47 signup/signup-debug.php
-rw-r--r-- dieu/dieu 876 2021-02-14 21:47 signup/signup-domain-verify.php
-rw-r--r-- dieu/dieu 897 2021-02-14 21:47 signup/signup-email-verify.php
-rw-r--r-- dieu/dieu 8931 2021-02-14 21:47 signup/signup-language.php
-rw-r--r-- dieu/dieu 19783 2021-02-14 21:47 signup/signup.php
-rw-r--r-- dieu/dieu 23257 2021-02-14 21:47 signup/signup-process.php
-rw-r--r-- dieu/dieu 838 2021-02-14 21:47 signup/signup-user-verify.php
Good luck!
blog comments powered by DisqusAbout
Read about IT, Migration, Business, Money, Marketing and other subjects.
Some subjects: FusionPBX, FreeSWITCH, Linux, Security, Canada, Cryptocurrency, Trading.