... | ... | @@ -45,11 +45,11 @@ Another limitation is that _pharc_ only works with the 21st century year range ( |
|
|
|
|
|
_pharc_ creates *year archives*, so after it finishes, you will find a directory in your phlog in the form $(date +'%Y'). _pharc_ also creates and edits the gophermaps in such a way that they will not require manual intervention on your part to update the links.
|
|
|
|
|
|
Example: If you start your phlog in 2013, at the end of the year _pharc_ will move all the scattered posts of the year into a directory named 2013 and it will create a gophermap with the link: **Archive 2013**. Much in the same way, the following year _pharc_ will create a directory named 2014 and thus you will have the following layout at the end of the year:
|
|
|
Example: If you start your phlog in 2015, at the end of the year _pharc_ will move all the scattered posts of the year into a directory named 2015 and it will create a gophermap with the link: **Archive 2015**. Much in the same way, the following year _pharc_ will create a directory named 2016 and thus you will have the following layout at the end of the year:
|
|
|
|
|
|
Archive 2013
|
|
|
Archive 2016
|
|
|
|
|
|
Archive 1014
|
|
|
Archive 1015
|
|
|
|
|
|
And so on and so forth...
|
|
|
|
... | ... | @@ -113,7 +113,7 @@ or |
|
|
|
|
|
It will archive those years too **\o/**. The `-l|--list` option might prove really handy to list all the unarchived posts before actually archiving them.
|
|
|
|
|
|
_pharc5_ allows you to archive all unarchived posts at once by means of the **-A** option.
|
|
|
_pharc5_ (and higher) allows you to archive all unarchived posts at once by means of the **-A** option.
|
|
|
|
|
|
**What is the difference between pharcX and pharc v.X.0?**
|
|
|
|
... | ... | @@ -132,6 +132,8 @@ _pharc4_ was released in June 2014 as _pharc_ v.4.0. It includes many new option |
|
|
|
|
|
_pharc5_ was released in September 2015 as _pharc_ v.5.0. It includes one new option. See the changelog for details.
|
|
|
|
|
|
_pharc6_ was released in January 2017 as _pharc_ v.6.0. It includes minor fixes. See the changelog for details.
|
|
|
|
|
|
**How can I install _pharc_?**
|
|
|
|
|
|
If you want to install the raw script, make it executable `$ chmod +x pharc`and copy it in your $PATH. `/usr/local/bin` is a nice place. Then, from a terminal, call the script by simply typing `pharc` with the options you want. Try: _pharc -h_.
|
... | ... | @@ -142,7 +144,7 @@ If you are using the .deb package, become root and follow the drill: `dpkg -i ph |
|
|
|
|
|
Because I can? :-Þ
|
|
|
|
|
|
Now, seriously, I'm a diehard debian user, contributor and enthusiast. I only build the .deb for personal use and for learning purposes. It is really interesting to learn how to build packages for a distribution.
|
|
|
Now seriously, I only build the .deb for personal use and for learning purposes. It is really interesting to learn how to build packages for a distribution.
|
|
|
|
|
|
**Do I have to take a look at the script before using it?**
|
|
|
|
... | ... | @@ -150,7 +152,7 @@ It depends. It is preferable that you understand what the script is going to do |
|
|
|
|
|
**Why don't you edit the gophermaps in place instead of using < input.file > output.file?**
|
|
|
|
|
|
Because the sed version in NetBSD 6.1.2 does not have the **-i** option. If you are wondering who cares about NetBSD's sed version someone could say: "Many people, for example: users, core developers, contributors, enthusiasts, translators..." And even I do, because my gopher hole is hosted on a NetBSD cluster so I need the script to work in that environment.
|
|
|
Because the sed version in NetBSD 6.1.2 does not have the **-i** option. If you are wondering who cares about NetBSD's sed version someone could say: "Many people, for example: users, core developers, contributors, enthusiasts, translators..." And even I do, because my gopherhole is hosted on a NetBSD cluster so I need the script to work in that environment.
|
|
|
|
|
|
**Why don't you optimize the calls to the shell?**
|
|
|
|
... | ... | @@ -178,7 +180,11 @@ _pharc_ has now all the features and options I envisioned through all these year |
|
|
|
|
|
**CHANGELOG**
|
|
|
|
|
|
pharc (5.0-1)
|
|
|
pharc (6.0-1)
|
|
|
|
|
|
* v.6.0
|
|
|
|
|
|
* Sort Archives in reverse mode.
|
|
|
|
|
|
* v.5.0
|
|
|
|
... | ... | @@ -212,6 +218,6 @@ pharc (5.0-1) |
|
|
* Adding version number 2.0
|
|
|
* Adding license (2012)
|
|
|
|
|
|
* Initial release.
|
|
|
* Initial release
|
|
|
|
|
|
|